diff options
| author | Toby Goodwin <LibreSoftwareDesign@gmail.com> | 2012-10-15 00:17:17 +0100 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:23:24 +0100 |
| commit | d854792229fd4151b3f9abb70fa4bfaeea369563 (patch) | |
| tree | d5d0c80b2f63bb0b6bd72755601a9fef4632b57b /utils.c | |
| parent | d1f7167ce21da3e3f4ee051b2fdd24fc9607bbdc (diff) | |
more tidying up of errors
Diffstat (limited to 'utils.c')
| -rw-r--r-- | utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -12,9 +12,9 @@ extern void pr_error(char *s, int offset) { if (s != NULL) { if (interactive) - fprint(2, "%s\n", s); + fprint(2, RC "%s\n", s); else - fprint(2, "line %d: %s\n", lineno + offset, s); + fprint(2, RC "line %d: %s\n", lineno + offset, s); } } @@ -27,9 +27,9 @@ extern void uerror(char *s) { if (!err) err = "unknown error"; if (s) - fprint(2, "%s: %s\n", s, err); + fprint(2, RC "%s: %s\n", s, err); else - fprint(2, "%s\n", err); + fprint(2, RC "%s\n", err); } /* Die horribly. This should never get called. Please let me know if it does. */ |