fix: clarify review IDs and CLI guidance

This commit is contained in:
Valdemar Lorenzen
2026-10-20 12:57:45 +02:00
parent 759947736e
commit 33a8c423ac
3 changed files with 25 additions and 6 deletions
+6 -3
View File
@@ -172,10 +172,10 @@ impl Review {
.filter(|comment| comment.resolved)
.count();
format!(
"Review {} (revision {}): {}\n Verdict: {}; {} unresolved, {} resolved ({} total)\n",
"Review ID: {}{}{}\n Verdict: {}; {} unresolved, {} resolved ({} total)\n",
self.storage_id
.map_or_else(|| "null".into(), |id| id.to_string()),
self.storage_revision,
if self.summary.is_empty() { "" } else { ": " },
self.summary,
match self.verdict {
Some(Verdict::LooksGood) => "looks_good",
@@ -610,7 +610,10 @@ impl Store {
let row = rows
.next()
.map_err(database_error)?
.ok_or("Review does not exist in this repository")?;
.ok_or_else(|| format!(
"Review ID {id} not found in {}.\nRun `vamp --review list` to find review IDs for this repository.",
root.display()
))?;
stored_review(&transaction, row, &root)?
};
transaction.commit().map_err(database_error)?;