emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/yaml 0db4ab0a1e 046/124: Improve parsing error message


From: ELPA Syncer
Subject: [elpa] externals/yaml 0db4ab0a1e 046/124: Improve parsing error message
Date: Fri, 29 Nov 2024 15:59:59 -0500 (EST)

branch: externals/yaml
commit 0db4ab0a1e9052c23269873786db8ee3c00e5b6b
Author: Zachary Romero <zacromero@posteo.net>
Commit: Zachary Romero <zacromero@posteo.net>

    Improve parsing error message
---
 yaml.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/yaml.el b/yaml.el
index be245773c6..19a78fd27e 100644
--- a/yaml.el
+++ b/yaml.el
@@ -969,9 +969,9 @@ value.  It defaults to the symbol :false."
                  (yaml--top))))
 
       (when (< yaml--parsing-position (length yaml--parsing-input))
-        (error (format "parser finished before end of input %s/%s"
-                       yaml--parsing-position
-                       (length yaml--parsing-input))))
+        (error "Unable to parse YAML stream.  Parser finished before end of 
input %s/%s"
+               yaml--parsing-position
+               (length yaml--parsing-input)))
       (when yaml--parse-debug (message "Parsed data: %s" (pp-to-string res)))
       (yaml--walk-events res)
       (if (zerop (hash-table-count yaml--anchor-mappings))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]