diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-01-13 19:40:40 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-01-13 19:40:40 +0900 |
| commit | 0be356bc6d468ee82ec0b8798409c1da48c653f3 (patch) | |
| tree | deb9a95c676170ea55580837f0f46a6d1d6f0bc6 /vhosts/blog/nuldoc-src/ndoc/document.ts | |
| parent | e9d5b6e12f222fc363bd22dd35589449be776f99 (diff) | |
| download | nsfisis.dev-0be356bc6d468ee82ec0b8798409c1da48c653f3.tar.gz nsfisis.dev-0be356bc6d468ee82ec0b8798409c1da48c653f3.tar.zst nsfisis.dev-0be356bc6d468ee82ec0b8798409c1da48c653f3.zip | |
refactor(blog/nuldoc): rename DocBookError to NuldocError
Diffstat (limited to 'vhosts/blog/nuldoc-src/ndoc/document.ts')
| -rw-r--r-- | vhosts/blog/nuldoc-src/ndoc/document.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vhosts/blog/nuldoc-src/ndoc/document.ts b/vhosts/blog/nuldoc-src/ndoc/document.ts index f1cdede9..26c00784 100644 --- a/vhosts/blog/nuldoc-src/ndoc/document.ts +++ b/vhosts/blog/nuldoc-src/ndoc/document.ts @@ -1,6 +1,6 @@ import { join } from "std/path/mod.ts"; import { Config } from "../config.ts"; -import { DocBookError } from "../errors.ts"; +import { NuldocError } from "../errors.ts"; import { Revision, stringToDate } from "../revision.ts"; import { Element, findFirstChildElement } from "../dom.ts"; import { z } from "zod/mod.ts"; @@ -40,8 +40,8 @@ export function createNewDocumentFromRootElement( ): Document { const article = findFirstChildElement(root, "article"); if (!article) { - throw new DocBookError( - `[docbook.new] <article> element not found`, + throw new NuldocError( + `[nuldoc.new] <article> element not found`, ); } |
