Created
November 15, 2011 15:04
-
-
Save bnoordhuis/1367276 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/uv-common.c b/src/uv-common.c | |
| index 3143bd2..9ace0f3 100644 | |
| --- a/src/uv-common.c | |
| +++ b/src/uv-common.c | |
| @@ -55,8 +55,7 @@ const char* uv_err_name(uv_err_t err) { | |
| switch (err.code) { | |
| UV_ERRNO_MAP(UV_ERR_NAME_GEN) | |
| default: | |
| - assert(0); | |
| - return NULL; | |
| + return "Unknown system error"; | |
| } | |
| } | |
| #undef UV_ERR_NAME_GEN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment