Skip to content

Commit bf33ebf

Browse files
committed
a little extra commentary
1 parent 6f91cc2 commit bf33ebf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dev-tools/omdb/src/bin/omdb/db/sitrep.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,12 @@ pub(super) async fn cmd_db_sitrep_history(
161161
match datastore.fm_sitrep_metadata_read(&opctx, v.id).await {
162162
Ok(s) => (s.comment, Some(s.time_created)),
163163
Err(e) => {
164+
// If the sitrep has an entry in the history table, we
165+
// expect that it will not yet have been archived and
166+
// deleted, so this is an error rather a case of it just
167+
// no longer existing.
164168
eprintln!(
165-
"failed to get fetch metadata for sitrep {} (v{}): {e}",
169+
"failed to fetch metadata for sitrep {} (v{}): {e}",
166170
v.id, v.version
167171
);
168172
("<ERROR>".to_string(), None)

0 commit comments

Comments
 (0)