Browse Source

:art: Add version info at the end of message in all error notifications Fix https://github.com/siyuan-note/siyuan/issues/7899

Liang Ding 2 years ago
parent
commit
86cbf95d5b
2 changed files with 1 additions and 1 deletions
  1. 0 1
      kernel/model/sync.go
  2. 1 0
      kernel/util/websocket.go

+ 0 - 1
kernel/model/sync.go

@@ -518,7 +518,6 @@ func formatErrorMsg(err error) string {
 			msg = Conf.Language(28)
 		}
 	}
-	msg = msg + " v" + util.Ver
 	return msg
 }
 

+ 1 - 0
kernel/util/websocket.go

@@ -142,6 +142,7 @@ func PushMsg(msg string, timeout int) (msgId string) {
 
 func PushErrMsg(msg string, timeout int) (msgId string) {
 	msgId = gulu.Rand.String(7)
+	msg += msg + " v" + Ver // Add version info at the end of message in all error notifications https://github.com/siyuan-note/siyuan/issues/7899
 	BroadcastByType("main", "msg", -1, msg, map[string]interface{}{"id": msgId, "closeTimeout": timeout})
 	return
 }