Skip to content
Permalink
Browse files

Fix formatting of error output

  • Loading branch information...
citrus-it authored and pyhalov committed Aug 10, 2019
1 parent 51cc1f4 commit 3abec8be63f9c07fd3767043a391f24c309dadda
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/modules/client/api_errors.py
@@ -3109,7 +3109,8 @@ def __init__(self, bundle=None, lin=None, exitrv=None,
rv=rv, cmd=cmd)
if errout:
err += _("\nAnd generated the following error "
"message:\n{errout}".format(errout=errout))
"message:\n{errout}".format(
errout=errout.decode()))

if cmd_output_invalid is not None:
(cmd, output) = cmd_output_invalid
@@ -3206,7 +3207,7 @@ def __init__(self, bundle=None, lin=None, exitrv=None,
lin=lin,
op=op,
exitrv=exitrv,
errout=errout,
errout=errout.decode(),
)
else:
err = _("""
@@ -3221,7 +3222,7 @@ def __init__(self, bundle=None, lin=None, exitrv=None,
).format(
lin=lin,
op=op,
errout=errout,
errout=errout.decode(),
e=e,
)

@@ -3250,7 +3251,7 @@ def __init__(self, bundle=None, lin=None, exitrv=None,
lin=lin,
op=op,
e=e,
errout=errout,
errout=errout.decode(),
)

# set default error return value

0 comments on commit 3abec8b

Please sign in to comment.
You can’t perform that action at this time.