changeset 643:073940496d59

Added prefix to error messages to simplify identification this program as source of errors.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Sat, 21 Oct 2017 21:40:28 +0300
parents b2b01d76a861
children a9aa9260f4a2
files cygwin/cygrun/cygrun.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/cygwin/cygrun/cygrun.c	Wed Oct 04 14:52:09 2017 +0300
+++ b/cygwin/cygrun/cygrun.c	Sat Oct 21 21:40:28 2017 +0300
@@ -18,18 +18,18 @@
 
     /* Break infinite loading itself if appropriate shell script absent. */
     if (getenv("CYGRUN")) {
-        fprintf(stderr, "Recursive calls was detected. Fix your PATH!");
+        fprintf(stderr, "cygrun: recursive call was detected, fix your PATH!");
         exit(1);
     }
 
     /* To prevent argument damage (like stripping curly braces) check if 'noglob' is set. */
     char *cygwin_env = getenv("CYGWIN");
     if (cygwin_env == NULL) {
-        fprintf(stderr, "CYGWIN env var isn't set. We expect 'noglob' there.");
+        fprintf(stderr, "cygrun: CYGWIN env var isn't set, we expect 'noglob' there.");
         exit(EXIT_FAILURE);
     }
     if (strstr(cygwin_env, "noglob") == NULL) {
-        fprintf(stderr, "'noglob' is expected in CYGWIN env var.");
+        fprintf(stderr, "cygrun: 'noglob' is expected in CYGWIN env var.");
         exit(EXIT_FAILURE);
     }