Skip to content

Commit

Permalink
fix: useful info ommitted from errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeStanger committed Aug 30, 2023
1 parent 45bfcc3 commit b0bc2fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libcorn/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ pub enum Error {
#[error(transparent)]
ParserError(#[from] Box<pest::error::Error<Rule>>),

#[error("failed to resolve referenced input")]
#[error("failed to resolve referenced input `{0}`")]
InputResolveError(String),

#[error("attempted to use dot-notation on non-object value")]
#[error("attempted to use dot-notation on non-object value at `{0}`")]
InvalidPathError(String),

#[error("attempted to spread a type that differs from its containing type")]
#[error("attempted to spread a type that differs from its containing type at `{0}`")]
InvalidSpreadError(String),

#[error("attempted to interpolate a non-string type into a string")]
#[error("attempted to interpolate a non-string type into a string at `{0}`")]
InvalidInterpolationError(String),

#[error("failed to deserialize input")]
#[error("failed to deserialize input: {0}")]
DeserializationError(String),
}

Expand Down

0 comments on commit b0bc2fe

Please sign in to comment.