diff --git a/framework/vendure/fetcher.ts b/framework/vendure/fetcher.ts index de3fe56ee..26e1eec28 100644 --- a/framework/vendure/fetcher.ts +++ b/framework/vendure/fetcher.ts @@ -1,5 +1,5 @@ import { Fetcher } from '@commerce/utils/types' -import { ErrorProps, FetcherError } from '@commerce/utils/errors' +import { FetcherError } from '@commerce/utils/errors' async function getText(res: Response) { try { @@ -48,5 +48,6 @@ export const fetcher: Fetcher = async ({ } return data } + throw await getError(res) }