From 0be356bc6d468ee82ec0b8798409c1da48c653f3 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 13 Jan 2025 19:40:40 +0900 Subject: refactor(blog/nuldoc): rename DocBookError to NuldocError --- vhosts/blog/nuldoc-src/ndoc/to_html.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vhosts/blog/nuldoc-src/ndoc/to_html.ts') diff --git a/vhosts/blog/nuldoc-src/ndoc/to_html.ts b/vhosts/blog/nuldoc-src/ndoc/to_html.ts index 16315a09..ddb041d5 100644 --- a/vhosts/blog/nuldoc-src/ndoc/to_html.ts +++ b/vhosts/blog/nuldoc-src/ndoc/to_html.ts @@ -1,7 +1,7 @@ // @deno-types="../types/highlight-js.d.ts" import hljs from "highlight.js"; import { Document } from "./document.ts"; -import { DocBookError } from "../errors.ts"; +import { NuldocError } from "../errors.ts"; import { addClass, Element, @@ -86,8 +86,8 @@ function setSectionTitleAnchor(doc: Document) { if (c.name === "h") { const currentSection = sectionStack[sectionStack.length - 1]; if (!currentSection) { - throw new DocBookError( - "[docbook.tohtml] element must be inside
", + throw new NuldocError( + "[nuldoc.tohtml] element must be inside
", ); } const sectionId = currentSection.attributes.get("id"); -- cgit v1.2.3-70-g09d2