A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use strerror() function to display the correct error message.
[simgrid.git]
/
tools
/
tesh2
/
src
/
main.c
diff --git
a/tools/tesh2/src/main.c
b/tools/tesh2/src/main.c
index
005463a
..
58d7d7d
100644
(file)
--- 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
- ERROR
0("Insufficient memory is available to process the command line - system error"
);
+ ERROR
1("System error :`(%s)'", strerror(errno)
);
return -1;
}