mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
cleanup, add sorting
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { FetcherError } from '@commerce/utils/errors'
|
||||
|
||||
export function getError(errors: any[], status: number) {
|
||||
errors = errors ?? [{ message: 'Failed to fetch Shopify API' }]
|
||||
errors = errors ?? [{ message: 'Failed to fetch Swell API' }]
|
||||
return new FetcherError({ errors, status })
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user