when api docs cannot be loaded, say which

This commit is contained in:
Mechiel Lukkien 2023-10-13 08:52:06 +02:00
parent 67fe88f431
commit 4e26fd13e2
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -52,7 +52,7 @@ var accountSherpaHandler http.Handler
func mustParseAPI(api string, buf []byte) (doc sherpadoc.Section) {
err := json.Unmarshal(buf, &doc)
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
}

View file

@ -79,7 +79,7 @@ var adminSherpaHandler http.Handler
func mustParseAPI(api string, buf []byte) (doc sherpadoc.Section) {
err := json.Unmarshal(buf, &doc)
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
}

View file

@ -50,7 +50,7 @@ type Webmail struct {
func mustParseAPI(api string, buf []byte) (doc sherpadoc.Section) {
err := json.Unmarshal(buf, &doc)
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
}