(errorType: string, request: Request, response: Response)
| 209 | } |
| 210 | |
| 211 | async function handleWebhookError(errorType: string, request: Request, response: Response) { |
| 212 | const body = await response.clone().text(); |
| 213 | |
| 214 | const message = `[${errorType}] ${response.status} - ${response.statusText} - body: "${body}"`; |
| 215 | |
| 216 | throw new ShopifyApiError(message, request, response); |
| 217 | } |
no test coverage detected
searching dependent graphs…