From 5681d103fa64772038e0e65e60831ca54f54f680 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 17 Aug 2018 11:40:36 +0700 Subject: [PATCH] Simplify error messages --- source/net/filebot/LicenseModel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/LicenseModel.java b/source/net/filebot/LicenseModel.java index e12e9323..3a15b59b 100644 --- a/source/net/filebot/LicenseModel.java +++ b/source/net/filebot/LicenseModel.java @@ -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";