Don't send error message to stdout, but to stderr.

This commit is contained in:
Holger Vogt 2022-09-18 16:00:21 +02:00
parent 453350bf2f
commit 64b429d6f8
1 changed files with 2 additions and 2 deletions

View File

@ -1305,10 +1305,10 @@ inp_dodeck(
if (p == dd->error) {
if (strstr(dd->line, ".model"))
out_printf("Warning: Model issue on line %d :\n %.*s ...\n%s\n",
fprintf(stderr, "Warning: Model issue on line %d :\n %.*s ...\n%s\n",
dd->linenum_orig, 72, dd->line, dd->error);
else {
out_printf("Error on line %d or its substitute:\n %s\n%s\n",
fprintf(stderr, "Error on line %d or its substitute:\n %s\n%s\n",
dd->linenum_orig, dd->line, dd->error);
have_err = TRUE;
return 1;