diff options
author | midipix <writeonce@midipix.org> | 2018-08-04 05:26:22 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-08-04 05:26:22 -0400 |
commit | 23a7cebeb41463fbfc3c068b9b9981e892906d88 (patch) | |
tree | ffe403bfa63ce029b8b5d653d876357d44234d48 | |
parent | 630188da36dd048f74b27555263f4204f2b53462 (diff) | |
download | mdso-23a7cebeb41463fbfc3c068b9b9981e892906d88.tar.bz2 mdso-23a7cebeb41463fbfc3c068b9b9981e892906d88.tar.xz |
mdso_output_error_record(): use fdctx->fderr to determine annotation mode.
-rw-r--r-- | src/output/mdso_output_error.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output/mdso_output_error.c b/src/output/mdso_output_error.c index 328c5cf..9ae5e30 100644 --- a/src/output/mdso_output_error.c +++ b/src/output/mdso_output_error.c @@ -186,7 +186,7 @@ int mdso_output_error_record( else if (dctx->cctx->drvflags & MDSO_DRIVER_ANNOTATE_ALWAYS) return mdso_output_error_record_annotated(dctx,erri); - else if (isatty(STDERR_FILENO)) + else if (isatty(mdso_driver_fderr(dctx))) return mdso_output_error_record_annotated(dctx,erri); else @@ -223,7 +223,7 @@ int mdso_output_error_vector(const struct mdso_driver_ctx * dctx) else if (dctx->cctx->drvflags & MDSO_DRIVER_ANNOTATE_ALWAYS) return mdso_output_error_vector_annotated(dctx); - else if (isatty(STDERR_FILENO)) + else if (isatty(mdso_driver_fderr(dctx))) return mdso_output_error_vector_annotated(dctx); else |