Skip to content

Feat/cor 32 requests made through client never error#57

Open
LukeT-Amplience wants to merge 9 commits into
amplience:masterfrom
LukeT-Amplience:feat/COR-32-Requests-made-through-client-never-error
Open

Feat/cor 32 requests made through client never error#57
LukeT-Amplience wants to merge 9 commits into
amplience:masterfrom
LukeT-Amplience:feat/COR-32-Requests-made-through-client-never-error

Conversation

@LukeT-Amplience

@LukeT-Amplience LukeT-Amplience commented Jan 24, 2022

Copy link
Copy Markdown
Contributor

Adds wrapper method to request() throwing an error when requests fail.

}
}

public async fetch(config: HttpRequest): Promise<HttpResponse> {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfect, would be good to get some basic docs down as well.

also DEFAULT_ERROR shows the shape of errors we normally return from API errors. unsure if we need to follow that shape here but looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants