Explorar el Código

Include status history in invalid parser errors

Issue 2628
tags/0.6.3m1rc3
Chris Smith hace 15 años
padre
commit
7036dc211d
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      src/com/dmdirc/ServerEventHandler.java

+ 2
- 1
src/com/dmdirc/ServerEventHandler.java Ver fichero

@@ -364,7 +364,8 @@ public final class ServerEventHandler extends EventHandler
364 364
                 && owner.getState() != ServerState.CONNECTING
365 365
                 && owner.getState() != ServerState.DISCONNECTING) {
366 366
             throw new IllegalArgumentException("Event called from a parser that " +
367
-                    "shouldn't be in use.\nCurrent state: " + owner.getState());
367
+                    "shouldn't be in use.\nState history:\n"
368
+                    + owner.getStatus().getTransitionHistory());
368 369
         }
369 370
     }
370 371
 

Loading…
Cancelar
Guardar