branch: elpa/javelin
commit 8a5bca85fd51547145fc49883c0dd1d91c22198d
Author: The Moriarty <[email protected]>
Commit: The Moriarty <[email protected]>

    notify when file not found
---
 harpoon.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/harpoon.el b/harpoon.el
index 793abc1a51a..c07f4348045 100644
--- a/harpoon.el
+++ b/harpoon.el
@@ -194,10 +194,11 @@
   (interactive)
   (let* ((line (buffer-substring-no-properties (point-at-bol) (point-at-eol)))
          (path (concat harpoon--project-path line)))
-    (when (file-exists-p path)
-      (save-buffer)
+    (if (file-exists-p path)
+      (progn (save-buffer)
       (kill-buffer)
-      (find-file path))))
+      (find-file path))
+      (message "File not found."))))
 
 (define-key harpoon-mode-map (kbd "<return>") #'harpoon-find-file)
 

Reply via email to