Skip to content

Commit

Permalink
decode nmount error message type calling MountFailed exception
Browse files Browse the repository at this point in the history
  • Loading branch information
gronke committed May 9, 2019
1 parent debb6a6 commit e2a6bb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libioc/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ def mount(
if libjail.dll.nmount(jiov.pointer, len(jiov), 0) != 0:
raise libioc.errors.MountFailed(
mountpoint=destination,
reason=jiov.errmsg.value,
reason=jiov.errmsg.value.decode("UTF-8"),
logger=logger
)

Expand Down

0 comments on commit e2a6bb8

Please sign in to comment.