From 29c1c8f36428478e4c5016657a9af5cb62fbf024 Mon Sep 17 00:00:00 2001 From: tobe Date: Tue, 16 Jun 2020 14:24:38 +0800 Subject: [PATCH] Fix not to abort when checking the errorno with unicode string --- src/butil/errno.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/butil/errno.cpp b/src/butil/errno.cpp index 8b3eeb7604..9b964e114f 100644 --- a/src/butil/errno.cpp +++ b/src/butil/errno.cpp @@ -60,9 +60,8 @@ int DescribeCustomizedErrno( if (desc && strncmp(desc, "Unknown error", 13) != 0) #endif { - fprintf(stderr, "Fail to define %s(%d) which is already defined as `%s', abort.", + fprintf(stderr, "WARNING: Fail to define %s(%d) which is already defined as `%s'", error_name, error_code, desc); - _exit(1); } } errno_desc[error_code - ERRNO_BEGIN] = description;