summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWojciech Meyer <wojciech.meyer@gmail.com>2012-03-10 01:46:37 +0000
committerWojciech Meyer <wojciech.meyer@gmail.com>2012-03-10 01:46:37 +0000
commitae0d0f9adb59c7adb2a4a1e087847c5d93a2d33c (patch)
tree1dbcc2d91df94c80e8ec809d1d1d2659b2bb27f7
parente8d1f584d4119cedf4ba4a411d6b4391df547942 (diff)
PR#5532: Print full path in error message. Quote filename
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12215 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--byterun/startup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/byterun/startup.c b/byterun/startup.c
index 6117ff7a3..feb5029ae 100644
--- a/byterun/startup.c
+++ b/byterun/startup.c
@@ -370,12 +370,12 @@ CAMLexport void caml_main(char **argv)
fd = caml_attempt_open(&exe_name, &trail, 1);
switch(fd) {
case FILE_NOT_FOUND:
- caml_fatal_error_arg("Fatal error: cannot find file %s\n", argv[pos]);
+ caml_fatal_error_arg("Fatal error: cannot find file '%s'\n", argv[pos]);
break;
case BAD_BYTECODE:
caml_fatal_error_arg(
- "Fatal error: the file %s is not a bytecode executable file\n",
- argv[pos]);
+ "Fatal error: the file '%s' is not a bytecode executable file\n",
+ exe_name);
break;
}
}