mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
This commit is contained in:
parent
c70f7ee28c
commit
80e654c26d
5 changed files with 7 additions and 6 deletions
|
|
@ -18,6 +18,7 @@ package api
|
|||
|
||||
import (
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
|
|
@ -77,7 +78,8 @@ func indexRepo(c *gin.Context) {
|
|||
message := arg["message"].(string)
|
||||
if err := model.IndexRepo(message); nil != err {
|
||||
ret.Code = -1
|
||||
ret.Msg = model.Conf.Language(140)
|
||||
ret.Msg = fmt.Sprintf(model.Conf.Language(140), err)
|
||||
ret.Data = map[string]interface{}{"closeTimeout": 5000}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue