Skip to content

Commit 6bd7c57

Browse files
committed
Fix throwing stats errors
1 parent e437876 commit 6bd7c57

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎bin/graphpack.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const startDevServer = () => {
1515
webpackConfig.watchOptions,
1616
once((error, stats) => {
1717
if (error || stats.hasErrors()) {
18-
throw Error(error || stats.errors);
18+
throw Error(error || stats.toJson().errors);
1919
}
2020

2121
nodemon({ script: serverPaths[0], watch: serverPaths }).on(
@@ -29,7 +29,7 @@ const startDevServer = () => {
2929
const createProductionBuild = () => {
3030
compiler.run((error, stats) => {
3131
if (error || stats.hasErrors()) {
32-
throw Error(error || stats.errors);
32+
throw Error(error || stats.toJson().errors);
3333
}
3434
});
3535
};

0 commit comments

Comments
 (0)