Skip to content

Commit 40e5271

Browse files
committedFeb 9, 2018
Merge branch 'master' of github.com:hapijs/code
2 parents 506b432 + 7417485 commit 40e5271

File tree

2 files changed

+184
-360
lines changed

2 files changed

+184
-360
lines changed
 

‎lib/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ internals.throw = function (/* type, message */) {
392392
}
393393

394394
this.assert(thrown, 'throw an error', err);
395+
return err;
395396
}
396397

397398
return this.assert(thrown, 'throw an error');

‎test/index.js

+183-360
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.