From b9f8eeac2e545084617a983d79f2414b00661c33 Mon Sep 17 00:00:00 2001 From: Konrad Lipner Date: Fri, 11 Aug 2017 01:48:20 +0200 Subject: [PATCH] Remove assert(0) that breaks IoT.js (#84) 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 k.lipner@samsung.com --- src/uv-common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/uv-common.c b/src/uv-common.c index 7279916f..1bed2017 100644 --- a/src/uv-common.c +++ b/src/uv-common.c @@ -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