Skip to content

Commit

Permalink
fix #76 - Error thrown during sclang syntax error handling when the r…
Browse files Browse the repository at this point in the history
…esult object is null

This section still needs some examining. It's not quite right.
  • Loading branch information
crucialfelix committed Jan 30, 2020
1 parent 5c70a4c commit bdea095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lang/src/internals/sclang-io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export class SclangIO extends EventEmitter {
delete this.capturing[guid];
}
this.calls[guid].reject(
new SCLangError(`Interpret error: ${obj["errorString"]}`, response.type, err || obj),
new SCLangError(`Interpret error: ${obj && obj["errorString"]}`, response.type, err || obj),
);
}
delete this.calls[guid];
Expand Down

0 comments on commit bdea095

Please sign in to comment.