summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorToby Goodwin <LibreSoftwareDesign@gmail.com>2012-10-15 00:17:17 +0100
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:24 +0100
commitd854792229fd4151b3f9abb70fa4bfaeea369563 (patch)
treed5d0c80b2f63bb0b6bd72755601a9fef4632b57b /utils.c
parentd1f7167ce21da3e3f4ee051b2fdd24fc9607bbdc (diff)
more tidying up of errors
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils.c b/utils.c
index 14a55ff..482f7a7 100644
--- a/utils.c
+++ b/utils.c
@@ -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. */