Skip to content

Commit

Permalink
Improve error messages for urgrep-adjust-query
Browse files Browse the repository at this point in the history
  • Loading branch information
jimporter committed May 8, 2024
1 parent 4f736ca commit 773ff5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions urgrep.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 773ff5c

Please sign in to comment.