Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
No EOL
862 B
Text
22 lines
No EOL
862 B
Text
export default class CssSyntaxError extends Error {
|
|
constructor(error){
|
|
super(error);
|
|
const { reason, line, column } = error;
|
|
this.name = 'CssSyntaxError';
|
|
// Based on https://github.com/postcss/postcss/blob/master/lib/css-syntax-error.es6#L132
|
|
// We don't need `plugin` and `file` properties.
|
|
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`;
|
|
}
|
|
// We don't need stack https://github.com/postcss/postcss/blob/master/docs/guidelines/runner.md#31-dont-show-js-stack-for-csssyntaxerror
|
|
this.stack = false;
|
|
}
|
|
}
|
|
|
|
//# sourceMappingURL=CssSyntaxError.js.map |