lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject lucy-charmonizer git commit: Use strerror instead of raw error code
Date Thu, 09 Apr 2015 12:40:11 GMT
Repository: lucy-charmonizer
Updated Branches:
  refs/heads/master 998a1d11a -> 915dc2b2b


Use strerror instead of raw error code


Project: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/commit/915dc2b2
Tree: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/tree/915dc2b2
Diff: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/diff/915dc2b2

Branch: refs/heads/master
Commit: 915dc2b2b70861a524989b48f840832944e95a6c
Parents: 998a1d1
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Thu Apr 9 14:37:35 2015 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Thu Apr 9 14:37:35 2015 +0200

----------------------------------------------------------------------
 src/Charmonizer/Core/Compiler.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/blob/915dc2b2/src/Charmonizer/Core/Compiler.c
----------------------------------------------------------------------
diff --git a/src/Charmonizer/Core/Compiler.c b/src/Charmonizer/Core/Compiler.c
index ea482b2..75ff6b0 100644
--- a/src/Charmonizer/Core/Compiler.c
+++ b/src/Charmonizer/Core/Compiler.c
@@ -99,7 +99,7 @@ chaz_CC_init(const char *compiler_command, const char *compiler_flags) {
                                           chaz_OS_dev_null());
     chaz_Util_remove_and_verify(chaz_CC.try_exe_name);
     if (retval < 0) {
-        chaz_Util_die("Failed to execute test file (errno=%d)", errno);
+        chaz_Util_die("Failed to execute test file: %s", strerror(errno));
     }
     if (retval > 0) {
         chaz_Util_die("Unexpected exit code %d from test file", retval);


Mime
View raw message