Browse Source

More friendly error message

Jason Grout 6 năm trước cách đây
mục cha
commit
b45714f11a
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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.'
+    );
   }
 }