Procházet zdrojové kódy

More friendly error message

Jason Grout před 6 roky
rodič
revize
b45714f11a
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      buildutils/src/utils.ts

+ 3 - 1
buildutils/src/utils.ts

@@ -130,7 +130,9 @@ export function prebump() {
 
   // Make sure we start in a clean git state.
   if (checkStatus('test -z "$(git status --porcelain)"') !== 0) {
-    throw new Error('Must be in a clean git state with no untracked files.');
+    throw new Error(
+      'Must be in a clean git state with no untracked files. Run "git status" to see the issues.'
+    );
   }
 }