fix: clarify review IDs and CLI guidance
This commit is contained in:
+6
-3
@@ -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)?;
|
||||
|
||||
Reference in New Issue
Block a user