Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method CssSyntaxError.prototype.toString
Re-export
import { CssSyntaxError } from "https://deno.land/x/postcss@8.4.16/lib/postcss.js";

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.