HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/buyercall_forms/buyercall/node_modules/postcss-loader/src/Error.js
/**
 * **PostCSS Syntax Error**
 *
 * Loader wrapper for postcss syntax errors
 *
 * @class SyntaxError
 * @extends Error
 *
 * @param {Object} err CssSyntaxError
 */
class SyntaxError extends Error {
  constructor (error) {
    super(error)

    const { line, column, reason } = error

    this.name = 'SyntaxError'

    this.message = `${this.name}\n\n`

    if (typeof line !== 'undefined') {
      this.message += `(${line}:${column}) `
    }

    this.message += `${reason}`

    const code = error.showSourceCode()

    if (code) {
      this.message += `\n\n${code}\n`
    }

    this.stack = false
  }
}

module.exports = SyntaxError