Browse Source

* Disable obscure shell errors

Bryan Drewery 17 năm trước cách đây
mục cha
commit
5cf79810da
2 tập tin đã thay đổi với 6 bổ sung0 xóa
  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
 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)
 * 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.
 * 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)); */
   /*  printf("\n[%lu]+  Stopped                 %s\r\n", job, basename(binname)); */
+#ifdef OBSCURE_ERRORS
   sdprintf(STR("Error %d: %s"), errnum, werr_tostr(errnum));
   sdprintf(STR("Error %d: %s"), errnum, werr_tostr(errnum));
   printf(STR("*** Error code %d\n\n"), errnum);
   printf(STR("*** Error code %d\n\n"), errnum);
   printf(STR("Segmentation fault\n"));
   printf(STR("Segmentation fault\n"));
+#else
+  printf(STR("Error %d: %s\n"), errnum, werr_tostr(errnum));
+#endif
   fatal("", 0);
   fatal("", 0);
   exit(0);				//gcc is stupid :)
   exit(0);				//gcc is stupid :)
 }
 }