Skip to content

Commit

Permalink
Fix: add missing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementNerma committed Dec 6, 2023
1 parent 0dfb6a8 commit f4c4b22
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,25 @@ use thiserror::Error;
pub enum ReedlineErrorVariants {
// todo: we should probably be more specific here
#[cfg(any(feature = "sqlite", feature = "sqlite-dynlib"))]
/// Error within history database
#[error("error within history database: {0}")]
HistoryDatabaseError(String),

/// Error within history
#[error("error within history: {0}")]
OtherHistoryError(&'static str),

/// History does not support a feature
#[error("the history {history} does not support feature {feature}")]
HistoryFeatureUnsupported {
/// Custom display name for the history
history: &'static str,

/// Unsupported feature
feature: &'static str,
},

/// I/O error
#[error("I/O error: {0}")]
IOError(std::io::Error),
}
Expand Down

0 comments on commit f4c4b22

Please sign in to comment.