Skip to content

Commit

Permalink
Lowercase error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGackstatter committed Jun 30, 2023
1 parent 93271f4 commit 33d5278
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
12 changes: 6 additions & 6 deletions identity_did/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ use core::fmt::Debug;
#[derive(Debug, thiserror::Error, strum::IntoStaticStr)]
#[non_exhaustive]
pub enum Error {
#[error("Invalid Fragment")]
#[error("invalid fragment")]
InvalidFragment,
#[error("Invalid Method Id")]
#[error("invalid method id")]
InvalidMethodId,
#[error("Invalid Method Name")]
#[error("invalid method name")]
InvalidMethodName,
#[error("Invalid Path")]
#[error("invalid path")]
InvalidPath,
#[error("Invalid Query")]
#[error("invalid query")]
InvalidQuery,
#[error("Invalid Scheme")]
#[error("invalid scheme")]
InvalidScheme,
#[error("{0}")]
Other(&'static str),
Expand Down
8 changes: 3 additions & 5 deletions identity_verification/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ pub enum Error {
DIDUrlConstructionError(#[source] identity_did::Error),
#[error("invalid or empty `id` fragment")]
MissingIdFragment,
#[error("Unknown Method Scope")]
#[error("unknown method scope")]
UnknownMethodScope,
#[error("Unknown Method Type")]
UnknownMethodType,
#[error("Invalid Base58 Key Data")]
#[error("invalid base58 key data")]
InvalidKeyDataBase58,
#[error("Invalid Multibase Key Data")]
#[error("invalid multibase key data")]
InvalidKeyDataMultibase,
#[error("the method data could not be transformed to the desired type")]
InvalidMethodDataTransformation(&'static str),
Expand Down

0 comments on commit 33d5278

Please sign in to comment.