Skip to content

Instantly share code, notes, and snippets.

@bnoordhuis
Created November 15, 2011 15:04
Show Gist options
  • Select an option

  • Save bnoordhuis/1367276 to your computer and use it in GitHub Desktop.

Select an option

Save bnoordhuis/1367276 to your computer and use it in GitHub Desktop.
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