Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Commit

Permalink
Remove assert(0) that breaks IoT.js (#84)
Browse files Browse the repository at this point in the history
On TizenRT there are unknown errors. IoT.js crash instead of returning "Unknown error".
Fix for #83.

libtuv-DCO-1.0-Signed-off-by: Konrad Lipner [email protected]
  • Loading branch information
kolipka authored and yichoi committed Aug 10, 2017
1 parent b7fa788 commit b9f8eea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/uv-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ const char* uv_err_name(int err) {
default:
/* TUV_CHANGES@20170517: To figure out what error name is missing */
TDLOG("uv_err_name for (%d) is missing. Add err name string\n", err);
assert(0);
return NULL;
return "uv_err_name: Unknown error";
}
}
#undef UV_ERR_NAME_GEN
Expand Down

0 comments on commit b9f8eea

Please sign in to comment.