Просмотр исходного кода

* Disable obscure shell errors

Bryan Drewery 17 лет назад
Родитель
Сommit
5cf79810da
2 измененных файлов с 6 добавлено и 0 удалено
  1. 2 0
      doc/UPDATES
  2. 4 0
      src/shell.c

+ 2 - 0
doc/UPDATES

@@ -1,3 +1,5 @@
+* 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)
 * Fix channels added by cmd_slowjoin not having the user who added them associated with the channel.

+ 4 - 0
src/shell.c

@@ -726,9 +726,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 :)
 }