Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Can't throw error (reject promise) in response interceptor #377

Closed
@Astray-git

Description

@Astray-git

Chrome will throw 'Uncaught (in promise)' if I return reject in response interceptor.`

when function takes 3 args: value, fulfilled, rejected, but is called with only 2, no rejected callback here:
https://github.com/vuejs/vue-resource/blob/b9c195daca50188f9338d0900654e75fb6eed483/src/http/client/index.js#L40-L46

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