From: Jani Nikula Date: Sat, 3 Oct 2015 07:57:56 +0000 (+0300) Subject: nmbug-status: print config errors to stderr X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=018e69f558c4ad36cefce42a11c2cdfe7270cb04;p=notmuch.git nmbug-status: print config errors to stderr Particularly scripted usage with stdout redirection can be confusing if errors are printed to stdout instead of stderr. --- diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status index a289798e..b36b6ad3 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', '''