Closed roerohan closed 4 years ago
Errors (if any) thrown from the by this.work() are not caught/handled in Worker.ts.
this.work()
Worker.ts
https://github.com/csivitu/code-executor/blob/b69766f9f629ba31f40afc8198356605041f541d/src/Worker.ts#L50-L58
The goal is to reject the promise in this.queue.on('global:completed') in the CodeExecutor class if the Worker ran into an error.
this.queue.on('global:completed')
CodeExecutor
https://github.com/csivitu/code-executor/blob/b69766f9f629ba31f40afc8198356605041f541d/src/CodeExecutor.ts#L17-L27
I will take this up.
Cool, good luck @alias-rahil
Resolved in #32
Return errors in CodeExecutor class
Errors (if any) thrown from the by
this.work()
are not caught/handled inWorker.ts
.https://github.com/csivitu/code-executor/blob/b69766f9f629ba31f40afc8198356605041f541d/src/Worker.ts#L50-L58
The goal is to reject the promise in
this.queue.on('global:completed')
in theCodeExecutor
class if the Worker ran into an error.https://github.com/csivitu/code-executor/blob/b69766f9f629ba31f40afc8198356605041f541d/src/CodeExecutor.ts#L17-L27