allegro / allegro/node-worker-nodes

fail not catched when error is unserializable

オープン
#49 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
494
フォーク
32
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。