fix try catch
This commit is contained in:
parent
a6e10e996e
commit
b76f275392
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue