allegro / allegro/node-worker-nodes
fail not catched when error is unserializable
Aberta
- Linguagem predominante
- JavaScript
- Estrelas
- 494
- Forks
- 32
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
Hi,
i happen to call browserify in a worker node: upon failure it returns an error with a lot of additional structures.
It took me a while to realize I had to rewrite the error using:
```
const err2 = new Error(err.message);
err2.code = err.code;
err2.stack = err.stack;
reject(err2);
```
i wonder if there is a way for worker-nodes to avoid the headache.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.