docs: adjust error description to reflect internal errors
Co-authored-by: Andrew Lamb <alamb@influxdata.com>pull/24376/head
parent
d6f0dc7059
commit
48307e4ab2
|
@ -47,7 +47,7 @@ pub enum Error {
|
||||||
},
|
},
|
||||||
|
|
||||||
#[snafu(display(
|
#[snafu(display(
|
||||||
"Revision cannot be zero (this transaction is always empty): {:?}",
|
"Internal error: Revision cannot be zero (this transaction is always empty): {:?}",
|
||||||
path
|
path
|
||||||
))]
|
))]
|
||||||
RevisionZeroFailure { path: Path },
|
RevisionZeroFailure { path: Path },
|
||||||
|
@ -402,8 +402,9 @@ mod tests {
|
||||||
let res =
|
let res =
|
||||||
rebuild_catalog::<TestCatalogState, _>(object_store, &path, server_id, db_name, ())
|
rebuild_catalog::<TestCatalogState, _>(object_store, &path, server_id, db_name, ())
|
||||||
.await;
|
.await;
|
||||||
assert!(dbg!(res.unwrap_err().to_string())
|
assert!(dbg!(res.unwrap_err().to_string()).starts_with(
|
||||||
.starts_with("Revision cannot be zero (this transaction is always empty):"));
|
"Internal error: Revision cannot be zero (this transaction is always empty):"
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
|
|
Loading…
Reference in New Issue