Skip to content

Commit

Permalink
fix: log session id in err
Browse files Browse the repository at this point in the history
  • Loading branch information
zzswang committed Nov 23, 2018
1 parent a977c58 commit f0729bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit f0729bf

Please sign in to comment.