Revision 5c983ee5 lib/cli.py
b/lib/cli.py | ||
---|---|---|
1266 | 1266 |
msg = "Failure: can't resolve hostname '%s'" |
1267 | 1267 |
obuf.write(msg % err.args[0]) |
1268 | 1268 |
elif isinstance(err, errors.OpPrereqError): |
1269 |
obuf.write("Failure: prerequisites not met for this" |
|
1270 |
" operation:\n%s" % msg) |
|
1269 |
if len(err.args) == 2: |
|
1270 |
obuf.write("Failure: prerequisites not met for this" |
|
1271 |
" operation:\nerror type: %s, error details:\n%s" % |
|
1272 |
(err.args[1], err.args[0])) |
|
1273 |
else: |
|
1274 |
obuf.write("Failure: prerequisites not met for this" |
|
1275 |
" operation:\n%s" % msg) |
|
1271 | 1276 |
elif isinstance(err, errors.OpExecError): |
1272 | 1277 |
obuf.write("Failure: command execution error:\n%s" % msg) |
1273 | 1278 |
elif isinstance(err, errors.TagError): |
Also available in: Unified diff