Skip to content

Commit 5f988fc

Browse files
committed
Add comment on snafu error
1 parent 8c8615e commit 5f988fc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • crates/stackable-operator/src/database_connections

crates/stackable-operator/src/database_connections/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ mod tests;
1010
///
1111
/// All variants use `context(false)` to enable automatic [`From`] conversion,
1212
/// so callers can use `?` directly without needing `.context(SomeSnafu)`.
13+
///
14+
/// This makes it way more comfortable to use in a trait context, which returns
15+
/// this core error type.
1316
#[derive(Debug, Snafu)]
1417
pub enum Error {
1518
#[snafu(context(false), display("PostgreSQL database connection error"))]

0 commit comments

Comments
 (0)