aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2009-12-04 10:39:38 +0000
committerErlang/OTP <[email protected]>2009-12-04 10:39:38 +0000
commit7457122ad3aa8dccb5439d3e430c93fe6ca2654e (patch)
treeae732218c242e63fef5453541b1ecdf06fe57944 /erts
parent5b157cb8f57a13bfd389f82b35b76b6d4b9987d5 (diff)
parentace6e42166f0817dce07c85f511eff543bd13ddf (diff)
downloadotp-7457122ad3aa8dccb5439d3e430c93fe6ca2654e.tar.gz
otp-7457122ad3aa8dccb5439d3e430c93fe6ca2654e.tar.bz2
otp-7457122ad3aa8dccb5439d3e430c93fe6ca2654e.zip
Merge branch 'mh/to_erl-error-messages' into ccase/r13b04_dev
* mh/to_erl-error-messages: to_erl: Include strerror(errno) in error messages OTP-8325 to_erl will now include the system error string in error messages to make it easier to understand what the real problem is. (Thanks to Magnus Henoch.)
Diffstat (limited to 'erts')
-rw-r--r--erts/etc/unix/to_erl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/etc/unix/to_erl.c b/erts/etc/unix/to_erl.c
index 588d127445..886b301997 100644
--- a/erts/etc/unix/to_erl.c
+++ b/erts/etc/unix/to_erl.c
@@ -164,7 +164,7 @@ int main(int argc, char **argv)
dirp = opendir(pipename);
if(!dirp) {
- fprintf(stderr, "Can't access pipe directory %s.\n", pipename);
+ fprintf(stderr, "Can't access pipe directory %s: %s\n", pipename, strerror(errno));
exit(1);
}
@@ -205,7 +205,7 @@ int main(int argc, char **argv)
#ifdef DEBUG
fprintf(stderr, "Could not open FIFO %s for reading.\n", FIFO1);
#endif
- fprintf(stderr, "No running Erlang on pipe %s.\n", pipename);
+ fprintf(stderr, "No running Erlang on pipe %s: %s\n", pipename, strerror(errno));
exit(1);
}
#ifdef DEBUG
@@ -216,7 +216,7 @@ int main(int argc, char **argv)
#ifdef DEBUG
fprintf(stderr, "Could not open FIFO %s for writing.\n", FIFO2);
#endif
- fprintf(stderr, "No running Erlang on pipe %s.\n", pipename);
+ fprintf(stderr, "No running Erlang on pipe %s: %s\n", pipename, strerror(errno));
close(rfd);
exit(1);
}