mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-15 17:28:37 +00:00
fix: add new case to AlgorithmErrCategory::message
This commit is contained in:
parent
a824ff4983
commit
5ef903fe33
1 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,8 @@ struct AlgorithmErrCategory: std::error_category
|
||||||
return "key not provided";
|
return "key not provided";
|
||||||
case AlgorithmErrc::NoneAlgorithmUsed:
|
case AlgorithmErrc::NoneAlgorithmUsed:
|
||||||
return "none algorithm used";
|
return "none algorithm used";
|
||||||
|
case AlgorithmErrc::InvalidKeyErr:
|
||||||
|
return "invalid key";
|
||||||
};
|
};
|
||||||
return "unknown algorithm error";
|
return "unknown algorithm error";
|
||||||
assert (0 && "Code not reached");
|
assert (0 && "Code not reached");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue