From f0729bf04bedb0df92ec512a8d99c79aeb0d6f8c Mon Sep 17 00:00:00 2001 From: zzswang Date: Fri, 23 Nov 2018 13:46:02 +0800 Subject: [PATCH] fix: log session id in err --- src/session.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/session.js b/src/session.js index e2ad36e..37eb7d7 100644 --- a/src/session.js +++ b/src/session.js @@ -130,6 +130,7 @@ export default class Session { if (!(err instanceof Error)) err = new Error(util.format("non-error thrown: %j", err)); // delegate + err.session = this.id; this.app.emit("error", err, this); } }