Add a generic error code (ENONE)
This commit is contained in:
parent
a021e7a309
commit
eef74e2897
@ -52,7 +52,8 @@
|
|||||||
#define ETIMEDOUT 110 // Connection timed out
|
#define ETIMEDOUT 110 // Connection timed out
|
||||||
#define EALREADY 114 // Operation already in progress
|
#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 EFIXME 342 // Functionality not yet implemented
|
||||||
|
#define ENONE 343 // Internal or insignificant error
|
||||||
|
|
||||||
const char* error_string(int error);
|
const char* error_string(int error);
|
@ -55,6 +55,7 @@ const char* error_string(int error)
|
|||||||
case ETIMEDOUT: return "Connection timed out";
|
case ETIMEDOUT: return "Connection timed out";
|
||||||
case EALREADY: return "Operation already in progress";
|
case EALREADY: return "Operation already in progress";
|
||||||
case EFIXME: return "Functionality not yet implemented";
|
case EFIXME: return "Functionality not yet implemented";
|
||||||
|
case ENONE: return "Internal or insignificant error";
|
||||||
default: return "Unknown error";
|
default: return "Unknown error";
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user