例外が出たら実行を止めるようにした
This commit is contained in:
@@ -193,6 +193,7 @@ class PetitComputer
|
|||||||
}
|
}
|
||||||
catch(SmileBasicError sbe)
|
catch(SmileBasicError sbe)
|
||||||
{
|
{
|
||||||
|
running = false;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
printConsole(sbe.to!string);
|
printConsole(sbe.to!string);
|
||||||
@@ -203,6 +204,7 @@ class PetitComputer
|
|||||||
}
|
}
|
||||||
catch(Throwable t)
|
catch(Throwable t)
|
||||||
{
|
{
|
||||||
|
running = false;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
printConsole(t.to!string);
|
printConsole(t.to!string);
|
||||||
|
|||||||
Reference in New Issue
Block a user