Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/aws/aws-cli
/ format_error_message
Function
format_error_message
awscli/errorformat.py:28–34 ·
view source on GitHub ↗
(message, prog="aws")
Source
from the content-addressed store, hash-verified
26
27
28
def
format_error_message(message, prog=
"aws"
):
29
if
not message:
30
return
f
"{prog}: [ERROR]:"
31
32
message = message.strip()
33
34
return
f
"{prog}: [ERROR]: {message}"
35
36
37
def
write_error(stderr, message):
Callers
1
write_error
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected