From 83fc001abdd6ba732fca9148759a163f6b8eba7b Mon Sep 17 00:00:00 2001 From: fros4943 Date: Wed, 3 Feb 2010 12:15:37 +0000 Subject: [PATCH] show error dialog at simulation exception --- tools/cooja/java/se/sics/cooja/Simulation.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/cooja/java/se/sics/cooja/Simulation.java b/tools/cooja/java/se/sics/cooja/Simulation.java index 80c68f98b..33bb3db64 100644 --- a/tools/cooja/java/se/sics/cooja/Simulation.java +++ b/tools/cooja/java/se/sics/cooja/Simulation.java @@ -24,7 +24,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: Simulation.java,v 1.58 2010/01/24 20:10:57 nifi Exp $ + * $Id: Simulation.java,v 1.59 2010/02/03 12:15:37 fros4943 Exp $ */ package se.sics.cooja; @@ -282,6 +282,8 @@ public class Simulation extends Observable implements Runnable { if (!GUI.isVisualized()) { /* Quit simulator if in test mode */ System.exit(1); + } else { + GUI.showErrorDialog(GUI.getTopParentContainer(), "Simulation error", e, false); } } isRunning = false;