提交 1f678697 编写于 作者: G Git-Lior

Fix #57222 - improve no user.email/user.name config error message

上级 e1fbd9ce
......@@ -1714,6 +1714,12 @@ export class CommandCenter {
type = 'warning';
options.modal = false;
break;
case GitErrorCodes.NoUserNameConfigured:
case GitErrorCodes.NoUserEmailConfigured:
message = localize('missing user info', "Make sure that user.email and user.name are configured correctly.\n\n{0}\n{1}",
"git config --global user.email \"you@example.com\"",
"git config --global user.name \"Your Name\"");
break;
default:
const hint = (err.stderr || err.message || String(err))
.replace(/^error: /mi, '')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册