mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 08:53:48 +03:00
when api docs cannot be loaded, say which
This commit is contained in:
parent
67fe88f431
commit
4e26fd13e2
3 changed files with 3 additions and 3 deletions
|
@ -52,7 +52,7 @@ var accountSherpaHandler http.Handler
|
||||||
func mustParseAPI(api string, buf []byte) (doc sherpadoc.Section) {
|
func mustParseAPI(api string, buf []byte) (doc sherpadoc.Section) {
|
||||||
err := json.Unmarshal(buf, &doc)
|
err := json.Unmarshal(buf, &doc)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
xlog.Fatalx("parsing api docs", err, mlog.Field("api", api))
|
xlog.Fatalx("parsing webaccount api docs", err, mlog.Field("api", api))
|
||||||
}
|
}
|
||||||
return doc
|
return doc
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,7 +79,7 @@ var adminSherpaHandler http.Handler
|
||||||
func mustParseAPI(api string, buf []byte) (doc sherpadoc.Section) {
|
func mustParseAPI(api string, buf []byte) (doc sherpadoc.Section) {
|
||||||
err := json.Unmarshal(buf, &doc)
|
err := json.Unmarshal(buf, &doc)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
xlog.Fatalx("parsing api docs", err, mlog.Field("api", api))
|
xlog.Fatalx("parsing webadmin api docs", err, mlog.Field("api", api))
|
||||||
}
|
}
|
||||||
return doc
|
return doc
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ type Webmail struct {
|
||||||
func mustParseAPI(api string, buf []byte) (doc sherpadoc.Section) {
|
func mustParseAPI(api string, buf []byte) (doc sherpadoc.Section) {
|
||||||
err := json.Unmarshal(buf, &doc)
|
err := json.Unmarshal(buf, &doc)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
xlog.Fatalx("parsing api docs", err, mlog.Field("api", api))
|
xlog.Fatalx("parsing webmail api docs", err, mlog.Field("api", api))
|
||||||
}
|
}
|
||||||
return doc
|
return doc
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue