Skip to content

Commit

Permalink
Add a prefix to exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Apr 1, 2024
1 parent 4f0ed50 commit 5d8e976
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/morphlex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/morphlex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function morph(node: ChildNode, reference: ChildNode | string, options: O
template.innerHTML = reference.trim();
reference = template.content.firstChild as ChildNode;
if (!reference) {
throw new Error("The provided string did not contain any nodes.");
throw new Error("[Morphlex] The string did not contain any nodes.");
}
}

Expand Down Expand Up @@ -116,7 +116,7 @@ class Morph {
this.#buildMaps(pair);
this.#morphMatchingElementContent(pair);
} else {
throw new Error("You can only do an inner morph with matching elements.");
throw new Error("[Morphlex] You can only do an inner morph with matching elements.");
}
}

Expand Down

0 comments on commit 5d8e976

Please sign in to comment.