Skip to content

Add error handing for _loadData #73

@samchrisinger

Description

@samchrisinger

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions