summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-08-04 05:55:28 -0400
committermidipix <writeonce@midipix.org>2018-08-04 05:55:28 -0400
commit3fe17dff99ee960f5924947619bc8f14b65ac6e2 (patch)
tree5bae0bf85747b4ce3d279c3edb896fe8ed82b404 /src
parentb4fb201f63152e62c33ef09a0ad2440593f44f5b (diff)
downloadperk-3fe17dff99ee960f5924947619bc8f14b65ac6e2.tar.bz2
perk-3fe17dff99ee960f5924947619bc8f14b65ac6e2.tar.xz
pe_output_error_record(): use fdctx->fderr to determine annotation mode.
Diffstat (limited to 'src')
-rw-r--r--src/output/pe_output_error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output/pe_output_error.c b/src/output/pe_output_error.c
index 39d7fd6..af23238 100644
--- a/src/output/pe_output_error.c
+++ b/src/output/pe_output_error.c
@@ -187,7 +187,7 @@ int pe_output_error_record(
else if (dctx->cctx->drvflags & PERK_DRIVER_ANNOTATE_ALWAYS)
return pe_output_error_record_annotated(dctx,erri);
- else if (isatty(STDERR_FILENO))
+ else if (isatty(pe_driver_fderr(dctx)))
return pe_output_error_record_annotated(dctx,erri);
else
@@ -224,7 +224,7 @@ int pe_output_error_vector(const struct pe_driver_ctx * dctx)
else if (dctx->cctx->drvflags & PERK_DRIVER_ANNOTATE_ALWAYS)
return pe_output_error_vector_annotated(dctx);
- else if (isatty(STDERR_FILENO))
+ else if (isatty(pe_driver_fderr(dctx)))
return pe_output_error_vector_annotated(dctx);
else