From 1251b722155a80c83c54dd213d43f237000ca74f Mon Sep 17 00:00:00 2001 From: Martin D Kealey Date: Sat, 4 Jan 2020 12:58:44 +1100 Subject: [PATCH] include enumeration of missing permissions in error log --- .../service/exception/MissingPermissionException.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/com/zegoggles/smssync/service/exception/MissingPermissionException.java b/app/src/main/java/com/zegoggles/smssync/service/exception/MissingPermissionException.java index 4a8004f5c..d81ff8f25 100644 --- a/app/src/main/java/com/zegoggles/smssync/service/exception/MissingPermissionException.java +++ b/app/src/main/java/com/zegoggles/smssync/service/exception/MissingPermissionException.java @@ -9,4 +9,9 @@ public class MissingPermissionException extends Exception { public MissingPermissionException(Set permissions) { this.permissions = permissions; } + + @Override + public String toString() { + return super.toString() + permissions; // Set.toString produces "[a, b, c]" + } }