Skip to content

the request won't break even on throwing error #43

Open
@mhamri

Description

@mhamri

I'm testing this addon out and I see that even throwing error wont' break fetch

throw `can't connect`;
return `{"error":"can't connect"}` ;

image

1- how to change response body?
2- how to change response code and cause an error?
3- how to correctly log, since I can't see the throw message in the console

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions