例外が出たら実行を止めるようにした

This commit is contained in:
otya128 committed 2015-07-09 21:29:09 +09:00
1 parent 6c7be9b92e
commit c1f570879d
1 file changed
+2
+2
View File
@@ -193,6 +193,7 @@ class PetitComputer
}
catch(SmileBasicError sbe)
{
running = false;
try
{
printConsole(sbe.to!string);
@@ -203,6 +204,7 @@ class PetitComputer
}
catch(Throwable t)
{
running = false;
try
{
printConsole(t.to!string);