diff options
author | midipix <writeonce@midipix.org> | 2018-08-04 05:55:28 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-08-04 05:55:28 -0400 |
commit | 3fe17dff99ee960f5924947619bc8f14b65ac6e2 (patch) | |
tree | 5bae0bf85747b4ce3d279c3edb896fe8ed82b404 | |
parent | b4fb201f63152e62c33ef09a0ad2440593f44f5b (diff) | |
download | perk-3fe17dff99ee960f5924947619bc8f14b65ac6e2.tar.bz2 perk-3fe17dff99ee960f5924947619bc8f14b65ac6e2.tar.xz |
pe_output_error_record(): use fdctx->fderr to determine annotation mode.
-rw-r--r-- | src/output/pe_output_error.c | 4 |
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 |