Browse Source

org-capture: Remove error checking in capture template

* lisp/org-capture.el (org-capture-expand-file): Remove error checking
  in capture template introduced in
  b89dfaa904d32b645b975ef363d0eb192581408a for now.
Nicolas Goaziou 3 years ago
parent
commit
dc3c69918f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-capture.el

+ 1 - 1
lisp/org-capture.el

@@ -1020,7 +1020,7 @@ case, raise an error."
    ((functionp file) (funcall file))
    ((and (symbolp file) (boundp file)) (symbol-value file))
    ((consp file) (eval file))
-   (t (error "Invalid file location: %S" file))))
+   (t file)))
 
 (defun org-capture-target-buffer (file)
   "Get a buffer for FILE.