diff --git a/middleware/Shard.js b/middleware/Shard.js index 3c6d794..50e721a 100644 --- a/middleware/Shard.js +++ b/middleware/Shard.js @@ -138,7 +138,7 @@ class Shard extends EventEmitter { if(!message || message._eval !== script) return; child.removeListener('message', listener); this._evals.delete(script); - if(!message._error) resolve(message._result); else reject(new Error(message._error)); + if(!message._error) resolve(message._result); else reject(new Error(message._error.stack)); }; child.on('message', listener);