Skip to content

Commit

Permalink
Merge pull request #113 from hasura/i-am-tom/more-specific-errors
Browse files Browse the repository at this point in the history
Add a  specific error variant for missing configuration files
  • Loading branch information
i-am-tom authored Feb 28, 2024
2 parents 1e6f53b + 06c578d commit 35f8388
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rust-connector-sdk/src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ pub enum ParseError {
ParseError(LocatedError),
#[error("error validating configuration: {0}")]
ValidateError(InvalidNodes),
#[error("could not find configuration file: {0}")]
CouldNotFindConfiguration(PathBuf),
#[error("error processing configuration: {0}")]
IoError(#[from] std::io::Error),
#[error("error processing configuration: {0}")]
Expand Down

0 comments on commit 35f8388

Please sign in to comment.