Skip to content

Handle errors from execute() by its returning values#17

Open
nandenjin wants to merge 1 commit intomezum:mainfrom
nandenjin:fix/invalid-error-handling-of-execute
Open

Handle errors from execute() by its returning values#17
nandenjin wants to merge 1 commit intomezum:mainfrom
nandenjin:fix/invalid-error-handling-of-execute

Conversation

@nandenjin
Copy link
Copy Markdown
Contributor

@nandenjin nandenjin commented Nov 17, 2020

Fixes #16

This PR fixes error handling of utility.execute(). It does not throw any errors, but returns them as returning values.

Note: I removed some detections with err.err.code === 'ENOENT' because it causes TypeError: Property 'code' does not exist on type 'Error'.ts(2339). At base code err is typed as any so it was not a problem. I'm not sure how to fix it. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Errors while executing compiler are not caught correctly

1 participant