Skip to content

Commit 3c6fc33

Browse files
committed
fix(exitCode): wrong check for existence fixed
A wrong check for existence resulted in events not being loaded on version sized like 4.0.0. This resulted in non zero error codes when actually running into errors. Signed-off-by: Tobias Gurtzick <magic@wizardtales.com>
1 parent 5450eb4 commit 3c6fc33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function dbmigrate (plugins, isModule, options, callback) {
4242
});
4343

4444
/* $lab:coverage:off$ */
45-
if (options && !options.throwUncatched) load('helper/register-events')();
45+
if (!options || !options.throwUncatched) load('helper/register-events')();
4646
/* $lab:coverage:on$ */
4747

4848
if (typeof options === 'object') {

0 commit comments

Comments
 (0)