W72crm_web-master/node_modules/postcss-loader/lib/Error.js

18 lines
333 B
JavaScript
Raw Permalink Normal View History

2025-05-27 11:25:53 +08:00
'use strict'
class SyntaxError extends Error {
constructor (err) {
super(err)
this.name = 'Syntax Error'
this.message = ''
this.message += `${this.name} \n\n(${err.line}:${err.column}) ${err.reason}`
this.message += `\n\n${err.showSourceCode()}\n`
this.stack = false
}
}
module.exports = SyntaxError