Skip to content

throw timeout error not as XHRError Exn.Error, but as separate error #155

Closed
@srghma

Description

@srghma
  • It's frustrating to have to look at a message of XHRError Exn.Error to see if it's timeout error OR some other error

Describe the solution you'd like

change

data Error
  = RequestContentError String
  | ResponseBodyError ForeignError (Response Foreign)
  | XHRError Exn.Error

to

data Error
  = RequestContentError String
  | ResponseBodyError ForeignError (Response Foreign)
  | XHRError Exn.Error
  | TimeoutError

Metadata

Metadata

Assignees

No one assigned

    Labels

    purs-0.14A reminder to address this issue or merge this PR before we release PureScript v0.14.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions