diff options
Diffstat (limited to 'public/gallery.js')
-rw-r--r-- | public/gallery.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/public/gallery.js b/public/gallery.js index ca1e511..970a3bf 100644 --- a/public/gallery.js +++ b/public/gallery.js @@ -1,6 +1,10 @@ 'use strict' function call(method, params) { + // TODO: Make it apparent when results result in errors: + // - With responseType == "json", m.request() always expects JSON, + // and error.message is null if it fails, but we can handle it manually. + // - Go can wrap all errors into trivial strings before writing. return m.request({ method: "POST", url: `/api/${method}`, |