If you want to return an error without meaning, use Option.
This commit is contained in:
parent
da104c87cb
commit
b9f3d3c349
@ -52,8 +52,7 @@
|
||||
#define ETIMEDOUT 110 // Connection timed out
|
||||
#define EALREADY 114 // Operation already in progress
|
||||
|
||||
// These ones are Luna-specific.
|
||||
// This one is Luna-specific.
|
||||
#define EFIXME 342 // Functionality not yet implemented
|
||||
#define ENONE 343 // Internal or insignificant error
|
||||
|
||||
const char* error_string(int error);
|
@ -55,7 +55,6 @@ 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";
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user