Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method postcss.CssSyntaxError.prototype.toString
Re-export
import { postcss } from "https://deno.land/x/deno_bundler@v0.9.1/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.