Fix error output

This commit is contained in:
otya128 committed 2017-01-21 22:18:19 +09:00
1 parent e22645470c
commit d1b3b78321
1 file changed
+2 -1
+2 -1
View File
@@ -1260,7 +1260,8 @@ class PetitComputer
console.print(t.to!string);
console.print("\n");
writeln(t);
console.print(vm.currentSlotNumber, ":", loc.line, ":", loc.pos, ":", program.slot[vm.currentSlotNumber].getLine(vm.currentLocation));
loc = vm.currentLocation;
console.print(vm.currentSlotNumber, ":", loc.line, ":", loc.pos, ":", program.slot[vm.currentSlotNumber].getLine(loc));
}
catch(Throwable t)
{