Browse Source

simplify

tags/2.0.1
Jonathan Cobb 5 years ago
parent
commit
b3457f6e99
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/java/org/cobbzilla/util/daemon/ZillaRuntime.java

+ 1
- 1
src/main/java/org/cobbzilla/util/daemon/ZillaRuntime.java View File

@@ -149,7 +149,7 @@ public class ZillaRuntime {
final String message = e.getMessage(); final String message = e.getMessage();
final Throwable cause = e.getCause(); final Throwable cause = e.getCause();
if (errorApi != null) { if (errorApi != null) {
if (cause != null && cause instanceof Exception) errorApi.report(message, (Exception) cause);
if (cause instanceof Exception) errorApi.report(message, (Exception) cause);
else errorApi.report(e); else errorApi.report(e);
} }
if (cause != null) log.error("Inner exception: " + message, cause); if (cause != null) log.error("Inner exception: " + message, cause);


Loading…
Cancel
Save