Output exception message on problems.
This commit is contained in:
parent
c8e06ba697
commit
13181f04e7
@ -471,8 +471,8 @@ if __name__ == "__main__":
|
||||
end(CRITICAL, "Caught Control-C...")
|
||||
except SystemExit:
|
||||
raise
|
||||
except:
|
||||
end(UNKNOWN, "check_yum failed for unknown reasons.")
|
||||
except Exception as ex:
|
||||
end(UNKNOWN, "check_yum failed: {}".format(str(ex)))
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user