Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/bundler/deps.ts>postcss.CssSyntaxError#toString

A Bundler with the web in mind.
Go to Latest
method postcss.CssSyntaxError.prototype.toString
Re-export
import { postcss } from "https://deno.land/x/bundler@0.6.5/deps.ts";
const { CssSyntaxError } = postcss;

Returns error position, message and source code of the broken part.

error.toString() //=> "CssSyntaxError: app.css:1:1: Unclosed block
                 //    > 1 | a {
                 //        | ^"

Returns

string

Error position, message and source code.