mirror of https://github.com/beego/bee.git
[g_docs] Optimize code format
Signed-off-by: weiyang <weiyang.ones@gmail.com>
This commit is contained in:
parent
cba6167342
commit
ebbc704811
|
@ -280,7 +280,8 @@ func GenerateDocs(curpath string) {
|
|||
}
|
||||
defs, err := convertSpecDefinitions(tparser.Definitions())
|
||||
if err != nil {
|
||||
panic(err)
|
||||
msg := fmt.Sprintf("failed to convert spec definitions into swagger definitions: %s", err)
|
||||
panic(msg)
|
||||
}
|
||||
rootapi.Definitions = defs
|
||||
|
||||
|
|
Loading…
Reference in New Issue