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.
This commit is contained in:
Jani Nikula 2015-10-03 10:57:56 +03:00 committed by David Bremner
parent 7b7dadb93f
commit 018e69f558

View file

@ -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>