Skip to content

Commit 6e05036

Browse files
authored
Update go_cli.py
Modify error message when git not found.
1 parent d99a81a commit 6e05036

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

go_cli.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,8 @@ def get_user_id():
143143
if response in ["n", "no"]:
144144
user_id = generate_random_uid()
145145
except Exception as e:
146-
print(f"Git not installed. Unable to import userid from Git.")
147-
print(f"Will use a random user-id.")
148-
print("Try running:\n")
149-
print("git config --global user.email <your_email>\n\n")
146+
print(f"Unable to import userid from Git. Git not installed or git user.email not configured.")
147+
print(f"Will use a random user-id. \n")
150148
user_id = generate_random_uid()
151149
print(WELCOME_TEXT)
152150

0 commit comments

Comments
 (0)