Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use strerror() function to display the correct error message.
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 25 Jun 2008 07:44:44 +0000 (07:44 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 25 Jun 2008 07:44:44 +0000 (07:44 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5799 48e7efb5-ca39-0410-a469-dd3cf9ba447f

tools/tesh2/src/main.c

index 005463a..58d7d7d 100644 (file)
@@ -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;
                                                        }