summaryrefslogtreecommitdiffhomepage
path: root/vhosts/blog/nuldoc-src/ndoc/to_html.ts
diff options
context:
space:
mode:
Diffstat (limited to 'vhosts/blog/nuldoc-src/ndoc/to_html.ts')
-rw-r--r--vhosts/blog/nuldoc-src/ndoc/to_html.ts6
1 files changed, 3 insertions, 3 deletions
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] <h> element must be inside <section>",
+ throw new NuldocError(
+ "[nuldoc.tohtml] <h> element must be inside <section>",
);
}
const sectionId = currentSection.attributes.get("id");