Sfoglia il codice sorgente

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

Jason Grout 4 anni fa
parent
commit
725aa35373
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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();