Skip to content

Commit eef9d28

Browse files
Added debug message
1 parent 89a8fd8 commit eef9d28

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

engine/command.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ export class Command{
33
public parameterString: string;
44

55
get parameters(): any[] {
6-
return JSON.parse("[" + this.parameterString + "]");
6+
try {
7+
return JSON.parse("[" + this.parameterString + "]");
8+
} catch(e) {
9+
console.error("Error parsing arguments: '" + this.parameterString + "'");
10+
throw e;
11+
}
712
}
8-
}
13+
}

0 commit comments

Comments
 (0)