fix try catch

This commit is contained in:
Daniella 2022-03-16 13:35:09 +01:00
parent a6e10e996e
commit b76f275392

View file

@ -102,7 +102,7 @@ public class ISBPL {
try {
block.call(stack);
} catch (ISBPLError error) {
if (Arrays.asList(allowed).contains(error.type) || allowed.length != 1 && allowed[0].equals("all")) {
if (Arrays.asList(allowed).contains(error.type) || allowed.length == 1 && allowed[0].equals("all")) {
stack.push(toISBPLString(error.message));
stack.push(toISBPLString(error.type));
catcher.call(stack);