Ver código fonte

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

Jason Grout 4 anos atrás
pai
commit
725aa35373
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      builder/src/build-labextension.ts

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

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