@@ -57,7 +57,7 @@ function validateAttributes(url, format,
|
57 | 57 | const keys = ObjectKeys(importAttributes); |
58 | 58 | for (let i = 0; i < keys.length; i++) { |
59 | 59 | if (keys[i] !== 'type') { |
60 | | -throw new ERR_IMPORT_ATTRIBUTE_UNSUPPORTED(keys[i], importAttributes[keys[i]]); |
| 60 | +throw new ERR_IMPORT_ATTRIBUTE_UNSUPPORTED(keys[i], importAttributes[keys[i]], url); |
61 | 61 | } |
62 | 62 | } |
63 | 63 | const validType = formatTypeMap[format]; |
@@ -102,7 +102,7 @@ function handleInvalidType(url, type) {
|
102 | 102 | |
103 | 103 | // `type` might not have been one of the types we understand. |
104 | 104 | if (!ArrayPrototypeIncludes(supportedTypeAttributes, type)) { |
105 | | -throw new ERR_IMPORT_ATTRIBUTE_UNSUPPORTED('type', type); |
| 105 | +throw new ERR_IMPORT_ATTRIBUTE_UNSUPPORTED('type', type, url); |
106 | 106 | } |
107 | 107 | |
108 | 108 | // `type` was the wrong value for this format. |
|