-
Notifications
You must be signed in to change notification settings - Fork 115
Closed
Labels
Description
PostCSS has a dedicated API method for errors. This codebase is inconsistent. It only uses it in lib/assign-layer-names.js.
For example:
postcss-import/lib/resolve-id.js
Lines 35 to 39 in b7d1939
| throw new Error( | |
| `Failed to find '${id}' | |
| in [ | |
| ${paths.join(",\n ")} | |
| ]` |
Also:
Lines 261 to 265 in b7d1939
| throw new Error( | |
| `Incompatable @charset statements: | |
| ${stmt.node.params} specified in ${stmt.node.source.input.file} | |
| ${charset.node.params} specified in ${charset.node.source.input.file}` | |
| ) |