mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-12 12:29:01 +00:00
show error dialog at simulation exception
This commit is contained in:
parent
7025402510
commit
83fc001abd
@ -24,7 +24,7 @@
|
|||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* 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;
|
package se.sics.cooja;
|
||||||
@ -282,6 +282,8 @@ public class Simulation extends Observable implements Runnable {
|
|||||||
if (!GUI.isVisualized()) {
|
if (!GUI.isVisualized()) {
|
||||||
/* Quit simulator if in test mode */
|
/* Quit simulator if in test mode */
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
|
} else {
|
||||||
|
GUI.showErrorDialog(GUI.getTopParentContainer(), "Simulation error", e, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
isRunning = false;
|
isRunning = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user