Forráskód Böngészése

More friendly error message

Jason Grout 6 éve
szülő
commit
b45714f11a
1 módosított fájl, 3 hozzáadás és 1 törlés
  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.'
+    );
   }
 }