Browse Source

If the compilation had an error, throw an error instead of returning.

Jason Grout 4 years ago
parent
commit
725aa35373
1 changed files with 1 additions and 1 deletions
  1. 1 1
      builder/src/build-labextension.ts

+ 1 - 1
builder/src/build-labextension.ts

@@ -68,7 +68,7 @@ commander
         if (err.details) {
         if (err.details) {
           console.error(err.details);
           console.error(err.details);
         }
         }
-        return;
+        throw new Error(err.details);
       }
       }
 
 
       const info = stats.toJson();
       const info = stats.toJson();