[LIB-9] Fix error in toString() function of exceptions
[chesshog.git] / src / main / java / org / hedgecode / chess / uci / EngineException.java
index c48ec3c..06562f9 100644 (file)
@@ -55,7 +55,7 @@ public class EngineException extends Exception {
         );
         if (message != null)
             sb.append(": [").append(message).append("]");
-        return message;
+        return sb.toString();
     }
 
 }