1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

Provide Bash/Shell code syntax in Rich Text Editor

Closes #322
This commit is contained in:
sauls8t 2019-09-18 11:25:21 +01:00
parent 00889f0e0e
commit 6b723568d3
4 changed files with 119 additions and 42 deletions

View file

@ -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
}