treebeard icon indicating copy to clipboard operation
treebeard copied to clipboard

Add error handing for _loadData

Open samchrisinger opened this issue 10 years ago • 0 comments

My concern is that if m.request fails or gets a non-200 response the developer interface exposes no way to catch and react to these errors.

In particular, if load data fails I want to destroy the grid and show an error message.

This is addressed to some extent here, https://github.com/caneruguz/treebeard/pull/71, but we should use the native error handler from m.request. (http://lhorie.github.io/mithril/mithril.request.html#using-variable-data-formats)

samchrisinger avatar Apr 10 '15 16:04 samchrisinger