Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit e5a4134

Browse files
committed
fix(serve): if a build error occurs, return config if non-fatal
The promise chain is restored by a .catch(), so we need to continue the chain with the appropriate resolved value. This should fix ionic-team/ionic-cli#2247
1 parent ce5c848 commit e5a4134

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/serve.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export function serve(context: BuildContext) {
6868
throw err;
6969
} else {
7070
onReady(config, context);
71+
return config;
7172
}
7273
});
7374
}

0 commit comments

Comments
 (0)