Browse Source

Merge branch 'no-obscure-errors'

* no-obscure-errors:
  * Disable obscure shell errors

Conflicts:
	doc/UPDATES
Bryan Drewery 17 years ago
parent
commit
67c871bf70
2 changed files with 5 additions and 0 deletions
  1. 1 0
      doc/UPDATES
  2. 4 0
      src/shell.c

+ 1 - 0
doc/UPDATES

@@ -1,6 +1,7 @@
 * Binary pass prompt has been changed to be more clear.
 * Fix uname checking on NetBSD and OpenBSD
 * EFnet server list updates
+* Make errors non-obscure. (Compile with OBSCURE_ERRORS to re-enable)
 
 1.2.16 - http://wraith.botpack.net/milestone/1.2.16
 * Add 'set altchars' so that alternative characters used for nicks can be changed. (fixes #418)

+ 4 - 0
src/shell.c

@@ -622,9 +622,13 @@ void werr(int errnum)
   }
   */
   /*  printf("\n[%lu]+  Stopped                 %s\r\n", job, basename(binname)); */
+#ifdef OBSCURE_ERRORS
   sdprintf(STR("Error %d: %s"), errnum, werr_tostr(errnum));
   printf(STR("*** Error code %d\n\n"), errnum);
   printf(STR("Segmentation fault\n"));
+#else
+  printf(STR("Error %d: %s\n"), errnum, werr_tostr(errnum));
+#endif
   fatal("", 0);
   exit(0);				//gcc is stupid :)
 }