(
method: string,
url: string,
response: Response,
)
| 733 | } |
| 734 | |
| 735 | private async fail( |
| 736 | method: string, |
| 737 | url: string, |
| 738 | response: Response, |
| 739 | ): Promise<never> { |
| 740 | const body = await response.text().catch(() => '') |
| 741 | throw new Error( |
| 742 | `Sprites API ${method} ${url} failed: ${response.status} ${response.statusText}${ |
| 743 | body ? ` — ${body}` : '' |
| 744 | }`, |
| 745 | ) |
| 746 | } |
| 747 | } |
| 748 | |
| 749 | interface ExecControlMessage { |
no test coverage detected