Commit b5489d58 authored by Alexandre's avatar Alexandre
Browse files

Print KO on error with --check

parent 98a22c01
......@@ -75,7 +75,9 @@ def error(msg=None):
print("%s: %s" % (url, msg))
sys.exit(STATE_CRITICAL)
else:
print(msg,file=sys.stderr)
print(msg, file=sys.stderr)
if check:
print('KO')
sys.exit(1)
def usage(msg=None):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment