Commits

Conor MacNeill committed e8ae626

Correct sense of test

Comments (0)

Files changed (1)

processutils/src/main/java/com/atlassian/utils/process/PluggableProcessHandler.java

     }
 
     public void setException(Throwable e) {
-        if (exception != null) {
+        if (exception == null) {
             if (e instanceof ProcessException) {
                 this.exception = (ProcessException) e;
             } else {
                 this.exception = new ProcessException(e);
             }
         } else {
-            LOGGER.debug("Ignore exception as exception for handler is alredy set", e);
+            LOGGER.debug("Ignored exception as exception for handler is already set", e);
         }
     }