Use error instead of print

This commit is contained in:
Brandon Conway 2021-03-15 11:56:05 -07:00
parent ee9e803ae6
commit d8213986e8

View File

@ -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