From 4e26fd13e2e45aa7b66e1cf6328506e9b61840ae Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Fri, 13 Oct 2023 08:52:06 +0200 Subject: [PATCH] when api docs cannot be loaded, say which --- webaccount/account.go | 2 +- webadmin/admin.go | 2 +- webmail/api.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webaccount/account.go b/webaccount/account.go index a1688ff..f3ed29f 100644 --- a/webaccount/account.go +++ b/webaccount/account.go @@ -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 } diff --git a/webadmin/admin.go b/webadmin/admin.go index a71404f..5a4bc74 100644 --- a/webadmin/admin.go +++ b/webadmin/admin.go @@ -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 } diff --git a/webmail/api.go b/webmail/api.go index e5f0948..8797c85 100644 --- a/webmail/api.go +++ b/webmail/api.go @@ -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 }