Simplify error messages

This commit is contained in:
Reinhard Pointner 2018-08-17 11:40:36 +07:00
parent 1a7e7b06c3
commit 5681d103fa
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ public enum LicenseModel {
throw new LicenseError("Desktop Bridge not found");
}
} catch (Exception e) {
throw new IllegalStateException(e);
throw new LicenseError(e.getMessage());
}
return "Microsoft Store License";
@ -35,7 +35,7 @@ public enum LicenseModel {
throw new LicenseError("Mac App Sandbox not found");
}
} catch (Exception e) {
throw new IllegalStateException(e);
throw new LicenseError(e.getMessage());
}
return "Mac App Store License";