Improve dbus error handling

Fixes #787
This commit is contained in:
AsamK 2021-10-27 20:00:36 +02:00
parent ce7aa580b6
commit 1fae09433d
2 changed files with 14 additions and 10 deletions

View file

@ -158,7 +158,7 @@ public class DbusSignalImpl implements Signal {
} catch (AttachmentInvalidException e) {
throw new Error.AttachmentInvalid(e.getMessage());
} catch (IOException e) {
throw new Error.Failure(e.getMessage());
throw new Error.Failure(e);
} catch (GroupNotFoundException | NotAGroupMemberException | GroupSendingNotAllowedException e) {
throw new Error.GroupNotFound(e.getMessage());
}