Skip to content

error handling in an ember-cli environment? #28

@1updesign

Description

@1updesign

Hey,

Apologies if this is answered elsewhere, I haven't managed to find it.

What's the best way to me to handle errors from ic-ajax in an ember-cli environment? I'm specifically trying to log my user out of ember-simple-auth after a 401 response from the server.

I'd like to define it globally if possible.

Is there a canonical way to do this? At the moment I'm using a mixin method in the promise fail callback...

Many Thanks.

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