branch: elpa/hyperdrive
commit 69e7d4aaaa028667e0eaf4c6563ee631aabcf265
Author: Joseph Turner <jos...@ushin.org>
Commit: Joseph Turner <jos...@ushin.org>

    Change: (h/next) Better error message: Missing version range data
---
 hyperdrive-lib.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index 5621a99fb6..bb02c4dd91 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -503,7 +503,8 @@ Sends a request to the gateway for hyperdrive's latest 
version."
     ;; ENTRY is a file...
     (pcase-let* ((`(,_range-start . ,(map :range-end))
                   (he/version-range entry))
-                 (next-range-start (1+ range-end))
+                 (next-range-start (1+ (or range-end
+                                           (h/error "Missing version range 
data"))))
                  ((map (:existsp next-range-existsp)
                        (:range-end next-range-end))
                   ;; TODO: If cl struct copiers are extended like this:

Reply via email to