diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2009-10-10 14:57:22 -0700 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2009-10-10 15:02:25 -0700 |
commit | efc818e36271b535e2afd44243e94d2c2e1bcf60 (patch) | |
tree | 2307f1513ea36e9a3c58c152d43a9cb87a134b40 /src | |
parent | 1a194fa9aa94e0e36b498b76015f7374fdae65d3 (diff) |
tcc: Print bad errors to stderr, too
Having critical errors in the journal is nice, but it's also nice if we
can show the to the user at the terminal so they don't wonder what the
heck happened.
Diffstat (limited to 'src')
-rw-r--r-- | src/tet3/tcc/error.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tet3/tcc/error.c b/src/tet3/tcc/error.c index 153ac783..61b9789d 100644 --- a/src/tet3/tcc/error.c +++ b/src/tet3/tcc/error.c @@ -133,8 +133,9 @@ char *file, *s1, *s2; text[0] = '\0'; errfmt(errnum, file, line, s1, s2, text, msg); - /* punt the message for printing to the current journal */ + /* print errors to journal and stderr */ jnl_tcc_prpmsg(prp, msg); + fprintf(stderr, "tcc %s\n", msg); } /* |