diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-09-26 10:38:34 +0200 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-09-26 10:55:39 +0200 |
commit | 650e03705edda0788a91c89c34cc6695f4358665 (patch) | |
tree | 3531cb94db748750004cf0c3b39334eb82d796a2 /src | |
parent | 1ba29e4b8b20f675aeccb6e9453f470b7ce5b4fb (diff) | |
download | lombok-650e03705edda0788a91c89c34cc6695f4358665.tar.gz lombok-650e03705edda0788a91c89c34cc6695f4358665.tar.bz2 lombok-650e03705edda0788a91c89c34cc6695f4358665.zip |
[live-debug] adding some logging when a very unexpected install error occurs
Diffstat (limited to 'src')
-rw-r--r-- | src/installer/lombok/installer/eclipse/EclipseProductLocation.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/installer/lombok/installer/eclipse/EclipseProductLocation.java b/src/installer/lombok/installer/eclipse/EclipseProductLocation.java index aa97a3e5..73f98a35 100644 --- a/src/installer/lombok/installer/eclipse/EclipseProductLocation.java +++ b/src/installer/lombok/installer/eclipse/EclipseProductLocation.java @@ -294,10 +294,12 @@ public final class EclipseProductLocation extends IdeLocation { try { lombokJar.delete(); } catch (Throwable ignore) { /* Nothing we can do about that. */ } - if (!readSucceeded) throw new InstallException( - "I can't read my own jar file. I think you've found a bug in this installer!\nI suggest you restart it " + + if (!readSucceeded) { + throw new InstallException( + "I can't read my own jar file (trying: " + ourJar.toString() + "). I think you've found a bug in this installer!\nI suggest you restart it " + "and use the 'what do I do' link, to manually install lombok. Also, tell us about this at:\n" + - "http://groups.google.com/group/project-lombok - Thanks!", e); + "http://groups.google.com/group/project-lombok - Thanks!\n\n[DEBUG INFO] " + e.getClass() + ": " + e.getMessage() + "\nBase: " + OsUtils.class.getResource("OsUtils.class"), e); + } throw new InstallException("I can't write to your " + descriptor.getProductName() + " directory at " + name + generateWriteErrorMessage(), e); } } |