[PATCH] nmbug-status: print config errors to stderr
Tomi Ollila
tomi.ollila at iki.fi
Sat Oct 3 02:08:05 PDT 2015
On Sat, Oct 03 2015, Jani Nikula <jani at nikula.org> wrote:
> Particularly scripted usage with stdout redirection can be confusing
> if errors are printed to stdout instead of stderr.
LGTM
> ---
> devel/nmbug/nmbug-status | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status
> index a289798e3cc1..b36b6ad33859 100755
> --- a/devel/nmbug/nmbug-status
> +++ b/devel/nmbug/nmbug-status
> @@ -318,7 +318,7 @@ args = parser.parse_args()
> try:
> config = read_config(path=args.config)
> except ConfigError as e:
> - print(e)
> + print(e, file=sys.stderr)
> sys.exit(1)
>
> header_template = config['meta'].get('header', '''<!DOCTYPE html>
> --
> 2.1.4
>
> _______________________________________________
> notmuch mailing list
> notmuch at notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch
More information about the notmuch
mailing list