Skip to content

Commit

Permalink
fix: correct error being returned from failed timestamp coersion
Browse files Browse the repository at this point in the history
  • Loading branch information
lfarrel6 committed Jan 10, 2025
1 parent beeb9fe commit d7c3323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion attestation-doc-validation/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ mod wasm {
let signed_js_ts = Date::now() as i64;
let js_ms = signed_js_ts
.try_into()
.map_err(|_| TimeError::NegativeTimestamp)?;
.map_err(|_| Error::NegativeTimestamp)?;
Ok(Duration::from_millis(js_ms))
}
}
Expand Down

0 comments on commit d7c3323

Please sign in to comment.