MCPcopy Create free account
hub / github.com/saltstack/salt / get_error_message

Function get_error_message

salt/exceptions.py:26–30  ·  view source on GitHub ↗

Get human readable message from Python Exception

(error)

Source from the content-addressed store, hash-verified

24
25
26def get_error_message(error):
27 """
28 Get human readable message from Python Exception
29 """
30 return error.args[0] if error.args else ""
31
32
33class SaltException(Exception):

Callers 3

update_jobFunction · 0.90
_fetchMethod · 0.90
environment_failureMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected