From: cherierm Date: Wed, 25 Jun 2008 07:44:44 +0000 (+0000) Subject: Use strerror() function to display the correct error message. X-Git-Tag: v3.3~301 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/20a71b3e4267c2bf738d6824b38c17dea043fd9f Use strerror() function to display the correct error message. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5799 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/tools/tesh2/src/main.c b/tools/tesh2/src/main.c index 005463a44e..58d7d7d47a 100644 --- a/tools/tesh2/src/main.c +++ b/tools/tesh2/src/main.c @@ -973,7 +973,7 @@ process_command_line(int argc, char** argv) if(ENOENT == errno) ERROR1("File %s does not exist", optarg); else - ERROR0("Insufficient memory is available to process the command line - system error"); + ERROR1("System error :`(%s)'", strerror(errno)); return -1; }