summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/output/slbt_output_error.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/output/slbt_output_error.c b/src/output/slbt_output_error.c
index d1cc8e5..a85b7c5 100644
--- a/src/output/slbt_output_error.c
+++ b/src/output/slbt_output_error.c
@@ -62,9 +62,12 @@ static int slbt_output_error_record_plain(
const struct slbt_error_info * erri)
{
char errbuf[256];
+
+ int fderr = slbt_driver_fderr(dctx);
const char * errdesc = slbt_output_strerror(erri,&errbuf);
- if (slbt_dprintf(slbt_driver_fderr(dctx),
+ if (slbt_dprintf(
+ fderr,
"%s: %s %s(), line %d%s%s.\n",
dctx->program,
slbt_output_error_header(erri),
@@ -82,10 +85,12 @@ static int slbt_output_error_record_annotated(
const struct slbt_error_info * erri)
{
char errbuf[256];
+
+ int fderr = slbt_driver_fderr(dctx);
const char * errdesc = slbt_output_strerror(erri,&errbuf);
if (slbt_dprintf(
- slbt_driver_fderr(dctx),
+ fderr,
"%s%s%s:%s %s%s%s %s%s%s()%s, %s%sline %d%s%s%s%s%s.\n",
aclr_bold,aclr_magenta,