From 773ff5c998cf6feb90e1c0da3a8a397a752fcb17 Mon Sep 17 00:00:00 2001 From: Jim Porter Date: Wed, 8 May 2024 15:21:38 -0700 Subject: [PATCH] Improve error messages for `urgrep-adjust-query` --- urgrep.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/urgrep.el b/urgrep.el index a5bfb29..29fbf97 100644 --- a/urgrep.el +++ b/urgrep.el @@ -752,10 +752,10 @@ Finally, this sets PROP to BODY's return value and re-runs the search." (declare (indent 1)) (unless (keywordp prop) - (error "invalid PROP %S" prop)) + (error "Invalid PROP %S" prop)) (let ((prop-variable (intern (substring (symbol-name prop) 1)))) `(if (not (listp urgrep-current-query)) - (error "nope") + (error "Unable to determine query properties") (let* ((new-value (let ((,prop-variable (plist-get (cdr urgrep-current-query) ,prop)))