Skip to content

Commit

Permalink
Fix: (org-ql-view--link-store) Error message for test suite
Browse files Browse the repository at this point in the history
Use format string to prevent `substitute-quotes' from changing the
error string, breaking the test suite when run on CI.

Fixes #317.
  • Loading branch information
alphapapa committed Mar 9, 2023
1 parent 8bb1739 commit 2bc327d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion org-ql-view.el
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ 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"))
(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 2bc327d

Please sign in to comment.