Skip to content

Commit

Permalink
Change: Error if file can't be opened
Browse files Browse the repository at this point in the history
  • Loading branch information
alphapapa committed May 24, 2018
1 parent fd00eb6 commit 52a1def
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion org-ql.el
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ buffer (the default is to widen and search the entire buffer)."
(-flatten-n 1 (--map (with-current-buffer (cl-typecase it
(buffer it)
(string (or (find-buffer-visiting it)
(find-file-noselect it))))
(find-file-noselect it)
(user-error "Can't open file: %s" it))))
(mapcar action-fn
(org-ql--filter-buffer :pred pred :narrow narrow)))
buffers-or-files))))
Expand Down

0 comments on commit 52a1def

Please sign in to comment.