allegro / allegro/node-worker-nodes
fail not catched when error is unserializable
Đang mở
- Ngôn ngữ chính
- JavaScript
- Star
- 494
- Fork
- 32
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.