Add a generic error code (ENONE)

This commit is contained in:
apio 2022-12-06 17:35:38 +01:00
parent a021e7a309
commit eef74e2897
Signed by: apio
GPG Key ID: B8A7D06E42258954
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -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";
}
}