From d8213986e80abcb31672689c9fd8bab45f168c9e Mon Sep 17 00:00:00 2001 From: Brandon Conway Date: Mon, 15 Mar 2021 11:56:05 -0700 Subject: [PATCH] Use error instead of print --- lua/harpoon/mark.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/harpoon/mark.lua b/lua/harpoon/mark.lua index 2fdfe66..3b6543c 100644 --- a/lua/harpoon/mark.lua +++ b/lua/harpoon/mark.lua @@ -83,7 +83,7 @@ M.add_file = function(file_name_or_buf_id) end if buf_name == "" or buf_name == nil then - print("Couldn't find a valid file name to mark, sorry.") + error("Couldn't find a valid file name to mark, sorry.") return end