Skip to content

Commit d8094e7

Browse files
committed
tweak postcss config error message
1 parent 4993dc4 commit d8094e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/style-compiler/load-postcss-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = function loadPostcssConfig (loaderContext, inlineConfig = {}) {
2626
if (err.message.indexOf('No PostCSS Config found') >= 0) {
2727
return
2828
}
29-
const friendlyErr = new Error(`Error on Loading PostCSS Config: ${err.message}`)
29+
const friendlyErr = new Error(`Error loading PostCSS config: ${err.message}`)
3030
Error.captureStackTrace(friendlyErr, err)
3131
loaderContext.emitError(friendlyErr)
3232
})

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ describe('vue-loader', () => {
521521
expect(err).to.be.null
522522
expect(warnings).to.be.empty
523523
expect(errors.length).to.equal(1)
524-
expect(errors[0].message).match(/^Error on Loading PostCSS Config\:/)
524+
expect(errors[0].message).match(/^Error loading PostCSS config\:/)
525525
fs.unlinkSync('.postcssrc.js')
526526
done()
527527
}, true)

0 commit comments

Comments
 (0)