1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-03-09 05:51:31 -04:00

Simplify error messages

This commit is contained in:
Reinhard Pointner 2018-08-17 11:40:36 +07:00
parent 1a7e7b06c3
commit 5681d103fa

View File

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