Explorar el Código

Print errors to stderr

Bryan Drewery hace 13 años
padre
commit
0eb7416dde
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/shell.c

+ 1 - 1
src/shell.c

@@ -684,7 +684,7 @@ void werr(int 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));
+  fprintf(stderr, STR("Error %d: %s\n"), errnum, werr_tostr(errnum));
 #endif
   fatal("", 0);
   exit(0);				//gcc is stupid :)