| 710 | 710 | type = 'character'; |
| 711 | 711 | result = await downloadGenericPng(url); |
| 712 | 712 | } else { |
| 713 | | - const receivedURL = new URL(url); |
| 713 | + console.error(`Received an import for "${getHostFromUrl(url)}", but site is not whitelisted. This domain must be added to the config key "whitelistImportDomains" to allow import from this source.`); |
| 714 | | - console.error(`Received an import for "${receivedURL.host}", but site is not whitelisted. This domain must be added to the config key "whitelistImportDomains" to allow import from this source.`); |
| 715 | 714 | return response.sendStatus(404); |
| 716 | 715 | } |
| 717 | 716 | |