allegro / allegro/node-worker-nodes

fail not catched when error is unserializable

Abierto
#49 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
494
Forks
32
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.