diff options
author | 2025-04-12 11:56:21 +0100 | |
---|---|---|
committer | 2025-04-12 11:56:21 +0100 | |
commit | c658ab440f8e69ac406b18732dbf276c084926b6 (patch) | |
tree | f033b38c6a16c6a900eb37f56ad9ae6f362cb435 /src/error.rs | |
parent | 3d575ec2a4440e7e4597761eab907d63ef91175e (diff) | |
download | peanuts-c658ab440f8e69ac406b18732dbf276c084926b6.tar.gz peanuts-c658ab440f8e69ac406b18732dbf276c084926b6.tar.bz2 peanuts-c658ab440f8e69ac406b18732dbf276c084926b6.zip |
feat: include input in parse error
Diffstat (limited to '')
-rw-r--r-- | src/error.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs index ae4aa26..717dfdd 100644 --- a/src/error.rs +++ b/src/error.rs @@ -51,7 +51,7 @@ pub enum Error { #[error("utf8 conversion: {0}")] Utf8Error(#[from] Utf8Error), #[error("nom parsing: {0}")] - ParseError(String), + ParseError(String, String), #[error("unknown xml entity reference `&{0};`")] EntityProcessError(String), #[error("invalid character reference: {0}")] |