Skip to content

Commit

Permalink
Merge pull request #252 from dkaplan1/error_code_1001_fix
Browse files Browse the repository at this point in the history
Include error message in CommandError for internal exceptions
  • Loading branch information
dlyssenko committed Apr 28, 2023
2 parents 7a2d236 + f5fcb4c commit 285116c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyeapi/eapilib.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class CommandError(EapiError):
"""
def __init__(self, code, message, **kwargs):
cmd_err = kwargs.get('command_error')
if int(code) in [1000, 1002, 1004]:
if int(code) in [1000, 1001, 1002, 1004]:
msg_fmt = 'Error [{}]: {} [{}]'.format(code, message, cmd_err)
else:
# error code 1005: 'Command unauthorized: user has insufficient
Expand Down

0 comments on commit 285116c

Please sign in to comment.