MCPcopy Index your code
hub / github.com/aws/aws-cli / CommandFailedError

Class CommandFailedError

awscli/customizations/codeartifact/login.py:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38
39
40class CommandFailedError(Exception):
41 def __init__(self, called_process_error, auth_token):
42 msg = str(called_process_error).replace(auth_token, '******')
43 if called_process_error.stderr is not None:
44 msg += (
45 f' Stderr from command:\n'
46 f'{called_process_error.stderr.decode(get_stderr_encoding())}'
47 )
48 Exception.__init__(self, msg)
49
50
51class BaseLogin:

Callers 2

_run_commandMethod · 0.85
loginMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected