Skip to content

Commit

Permalink
fix(@angular-devkit/build-webpack): emit devserver setup errors
Browse files Browse the repository at this point in the history
Closes #22969

(cherry picked from commit 3afd1ab)
  • Loading branch information
alan-agius4 authored and dgp1130 committed Apr 11, 2022
1 parent 2715aa7 commit 5682bae
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,13 @@ export function runWebpackDevServer(
});

const devServer = createWebpackDevServer(webpackCompiler, devServerConfig);
devServer.startCallback(() => {
devServer.startCallback((err) => {
if (err) {
obs.error(err);

return;
}

const address = devServer.server?.address();
if (!address) {
obs.error(new Error(`Dev-server address info is not defined.`));
Expand Down

0 comments on commit 5682bae

Please sign in to comment.