From d6e8464ade1fd0fcbc1f722a2f38734db40d2312 Mon Sep 17 00:00:00 2001 From: Artyom Pavlov Date: Sat, 2 Dec 2023 18:54:59 +0300 Subject: [PATCH] Add UNEXPECTED error description --- src/error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/error.rs b/src/error.rs index 2f66afb2..efdc6484 100644 --- a/src/error.rs +++ b/src/error.rs @@ -166,6 +166,7 @@ fn internal_desc(error: Error) -> Option<&'static str> { match error { Error::UNSUPPORTED => Some("getrandom: this target is not supported"), Error::ERRNO_NOT_POSITIVE => Some("errno: did not return a positive value"), + Error::UNEXPECTED => Some("unexpected situation"), Error::IOS_SEC_RANDOM => Some("SecRandomCopyBytes: iOS Security framework failure"), Error::WINDOWS_RTL_GEN_RANDOM => Some("RtlGenRandom: Windows system function failure"), Error::FAILED_RDRAND => Some("RDRAND: failed multiple times: CPU issue likely"),