Skip to content

Commit

Permalink
Fix string mismatch in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Jan 19, 2023
1 parent 2953352 commit 81192d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion org-ql-view.el
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,9 @@ When opened, the link searches the buffer it's opened from."
(when (buffer-base-buffer thing)
(buffer-file-name (buffer-base-buffer thing))))))))
(unless (strings-or-file-buffers-p org-ql-view-buffers-files)
(user-error "Views that search non-file-backed buffers can't be linked to"))
;; See https://github.com/jorgenschaefer/emacs-buttercup/issues/228
;; for why we need to raise the error using "%s"
(user-error "%s" "Views that search non-file-backed buffers can't be linked to"))
(let* ((query-string (--if-let (org-ql--query-sexp-to-string org-ql-view-query)
it (org-ql-view--format-query org-ql-view-query)))
(buffers-files (prompt-for (org-ql-view--contract-buffers-files org-ql-view-buffers-files)))
Expand Down

0 comments on commit 81192d5

Please sign in to comment.