mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
parent
00889f0e0e
commit
6b723568d3
4 changed files with 119 additions and 42 deletions
|
@ -1334,6 +1334,7 @@ func (h *Handler) FetchPages(w http.ResponseWriter, r *http.Request) {
|
|||
documentID := request.Param(r, "documentID")
|
||||
if len(documentID) == 0 {
|
||||
response.WriteMissingDataError(w, method, "documentID")
|
||||
h.Runtime.Log.Infof("Document ID missing for org %s", ctx.OrgID)
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -1343,7 +1344,7 @@ func (h *Handler) FetchPages(w http.ResponseWriter, r *http.Request) {
|
|||
doc, err := h.Store.Document.Get(ctx, documentID)
|
||||
if err != nil {
|
||||
response.WriteServerError(w, method, err)
|
||||
h.Runtime.Log.Error(method, err)
|
||||
h.Runtime.Log.Infof("Document not found %s", documentID)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue