Skip to content

Commit

Permalink
clock: fix error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
gauteh committed Oct 30, 2024
1 parent 64aed69 commit a6a87f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sfy-buoy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ impl Location {
let now = state
.now()
.map(|t| t.and_utc().timestamp_millis())
.ok_or(notecard::NoteError::WrongState)?;
.ok_or_else(|| notecard::NoteError::NotecardErr("RTC failure".into()))?;

match self.state {
Retrieved(t) | Trying(t) if (now - t) > LOCATION_DIFF => {
Expand Down

0 comments on commit a6a87f5

Please sign in to comment.