智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
LightingSystemApp-serial/.svn/pristine/5f/5faf413c628d38235cc39f0af4a...

31 lines
553 B

/**
* **PostCSS Plugin Warning**
*
* Loader wrapper for postcss plugin warnings (`root.messages`)
*
* @class Warning
* @extends Error
*
* @param {Object} warning PostCSS Warning
*/
class Warning extends Error {
constructor (warning) {
super(warning)
const { text, line, column } = warning
this.name = 'Warning'
this.message = `${this.name}\n\n`
if (typeof line !== 'undefined') {
this.message += `(${line}:${column}) `
}
this.message += `${text}`
this.stack = false
}
}
module.exports = Warning