diff --git a/lib/input.js b/lib/input.js index 1a5994a22..c66c3dc2d 100644 --- a/lib/input.js +++ b/lib/input.js @@ -167,6 +167,7 @@ class Input { if (fileURLToPath) { result.file = fileURLToPath(fromUrl) } else { + // istanbul ignore next throw new Error(`file: protocol is not available in this PostCSS build`); } } diff --git a/lib/map-generator.js b/lib/map-generator.js index 873c3cc96..b35fc32cc 100644 --- a/lib/map-generator.js +++ b/lib/map-generator.js @@ -205,6 +205,7 @@ class MapGenerator { if (pathToFileURL) { return pathToFileURL(node.source.input.from).toString() } else { + // istanbul ignore next throw new Error('`map.absolute` option is not available in this PostCSS build') } } else {