浏览代码

More friendly error message

Jason Grout 6 年之前
父节点
当前提交
b45714f11a
共有 1 个文件被更改,包括 3 次插入1 次删除
  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.'
+    );
   }
 }