mirror of
https://github.com/allankoechke/cpp-jwt.git
synced 2026-12-01 01:11:33 +00:00
Merge pull request #76 from saurik/error-messages
fix: add new case to AlgorithmErrCategory::message
This commit is contained in:
@@ -48,6 +48,8 @@ struct AlgorithmErrCategory: std::error_category
|
||||
return "key not provided";
|
||||
case AlgorithmErrc::NoneAlgorithmUsed:
|
||||
return "none algorithm used";
|
||||
case AlgorithmErrc::InvalidKeyErr:
|
||||
return "invalid key";
|
||||
};
|
||||
return "unknown algorithm error";
|
||||
assert (0 && "Code not reached");
|
||||
|
||||
Reference in New Issue
Block a user