From 5ef903fe339ee640dd9b675529451c4753ebccfe Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 21 Dec 2020 20:13:01 +0000 Subject: [PATCH] fix: add new case to AlgorithmErrCategory::message --- include/jwt/impl/error_codes.ipp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/jwt/impl/error_codes.ipp b/include/jwt/impl/error_codes.ipp index 4118d32..85958e7 100644 --- a/include/jwt/impl/error_codes.ipp +++ b/include/jwt/impl/error_codes.ipp @@ -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");