From eef74e2897dacb1d7c7d68cadac3df8910c4aecc Mon Sep 17 00:00:00 2001 From: apio Date: Tue, 6 Dec 2022 17:35:38 +0100 Subject: [PATCH] Add a generic error code (ENONE) --- luna/include/luna/SystemError.h | 3 ++- luna/src/SystemError.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/luna/include/luna/SystemError.h b/luna/include/luna/SystemError.h index 0c952b57..16bef760 100644 --- a/luna/include/luna/SystemError.h +++ b/luna/include/luna/SystemError.h @@ -52,7 +52,8 @@ #define ETIMEDOUT 110 // Connection timed out #define EALREADY 114 // Operation already in progress -// This one is Luna-specific. +// These ones are Luna-specific. #define EFIXME 342 // Functionality not yet implemented +#define ENONE 343 // Internal or insignificant error const char* error_string(int error); \ No newline at end of file diff --git a/luna/src/SystemError.cpp b/luna/src/SystemError.cpp index 2e1f63ad..27aa0853 100644 --- a/luna/src/SystemError.cpp +++ b/luna/src/SystemError.cpp @@ -55,6 +55,7 @@ const char* error_string(int error) case ETIMEDOUT: return "Connection timed out"; case EALREADY: return "Operation already in progress"; case EFIXME: return "Functionality not yet implemented"; + case ENONE: return "Internal or insignificant error"; default: return "Unknown error"; } } \ No newline at end of file