Skip to content

Commit 8806b33

Browse files
committed
Better error message
Signed-off-by: Sergey "Shnatsel" Davidoff <[email protected]>
1 parent 9475ea1 commit 8806b33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cyclonedx-bom/src/models/signature.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl FromStr for Algorithm {
8787
"HS256" => Ok(Algorithm::HS256),
8888
"HS384" => Ok(Algorithm::HS384),
8989
"HS512" => Ok(Algorithm::HS512),
90-
_ => Err(format!("Invalid algorithm '{}' found", s)),
90+
_ => Err(format!("Invalid signature algorithm '{}' found", s)),
9191
}
9292
}
9393
}

cyclonedx-bom/src/specs/v1_4/signature.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl FromStr for Algorithm {
9393
"HS256" => Ok(Algorithm::HS256),
9494
"HS384" => Ok(Algorithm::HS384),
9595
"HS512" => Ok(Algorithm::HS512),
96-
_ => Err(format!("Invalid algorithm '{}' found", s)),
96+
_ => Err(format!("Invalid signature algorithm '{}' found", s)),
9797
}
9898
}
9999
}

0 commit comments

Comments
 (0)