浏览代码

[GINR] Reply with gin on ssh error

cgars 8 年之前
父节点
当前提交
f936e47516
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      cmd/serv.go

+ 3 - 4
cmd/serv.go

@@ -38,7 +38,7 @@ var Serv = cli.Command{
 }
 
 func fail(userMessage, logMessage string, args ...interface{}) {
-	fmt.Fprintln(os.Stderr, "Gogs:", userMessage)
+	fmt.Fprintln(os.Stderr, "Gin:", userMessage)
 
 	if len(logMessage) > 0 {
 		if !setting.ProdMode {
@@ -137,7 +137,7 @@ func runServ(c *cli.Context) error {
 	setup(c, "serv.log", true)
 
 	if setting.SSH.Disabled {
-		println("Gogs: SSH has been disabled")
+		println("Gins: SSH has been disabled")
 		return nil
 	}
 
@@ -148,8 +148,7 @@ func runServ(c *cli.Context) error {
 	sshCmd := strings.Replace(os.Getenv("SSH_ORIGINAL_COMMAND"), "'", "", -1)
 	log.Info("SSH commadn:%s", sshCmd)
 	if len(sshCmd) == 0 {
-		println("Hi there, You've successfully authenticated, but Gogs does not provide shell access.")
-		println("If this is unexpected, please log in with password and setup Gogs under another user.")
+		println("Hi there, You've successfully authenticated, but Gin does not provide shell access.")
 		return nil
 	}