InterpreterDock: better error message when torpedoes collide
[fleet.git] / src / edu / berkeley / fleet / interpreter / InterpreterDock.java
index a08531c..4619209 100644 (file)
@@ -64,7 +64,7 @@ class InterpreterDock extends FleetTwoDock {
                 if (p.isToken()) {
                     if (instructionsBackedUpIntoSwitchFabric.size()!=0)
                         throw new RuntimeException("torpedo arrived while instructions were backed up into switch fabric");
-                    if (torpedoWaiting) throw new RuntimeException("two torpedoes collided!");
+                    if (torpedoWaiting) throw new RuntimeException("two torpedoes collided at dock "+this);
                     torpedoWaiting = true;
                     return;
                 }