Skip to content
Myr

don't call done twice for thrown errors inside parameterized routes

Before adoption: this commit came in with the history the project adopted, so no landing records it.

fixes #1995

authored by Roman Shtylman · committed by Roman Shtylman · parent cc38ccc · Browse files · 2 files+20 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+20 added−1 removed

  • tests:+19 added−0 removed
  • other:+1 added−1 removed

2 files+20 added−1 removed

modified:lib/router/index.js+1 added-1 removed
278 unmodified lines
279 } else if (key) {280 return param();281 }282 } catch (err) {283 done(err);283 return done(err);284 }285286 done();287 }
96 unmodified lines
modified:test/Router.js+19 added