Skip to content

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

Open
LukeT-Amplience wants to merge 9 commits intoamplience: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 intoamplience:masterfrom
LukeT-Amplience:feat/COR-32-Requests-made-through-client-never-error

Conversation

@LukeT-Amplience
Copy link
Contributor

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

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

}
}

public async fetch(config: HttpRequest): Promise<HttpResponse> {
Copy link
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