From 20c63c36b57f652d38c67666adf764dc37920056 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 28 Nov 2021 12:19:26 +0100 Subject: Exit script on error --- lua/rclone.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lua/rclone.lua') diff --git a/lua/rclone.lua b/lua/rclone.lua index 6df5efb..3685222 100644 --- a/lua/rclone.lua +++ b/lua/rclone.lua @@ -65,6 +65,7 @@ local function get_remote_config(remote) target_config = config[remote] else print("Couldn't find remote: " .. remote) + os.exit() end else local config_length = 0 @@ -89,6 +90,7 @@ local function get_remote_config(remote) if target_remote == nil then print("Couldn't find suitable remote") + os.exit() -- TODO: check how to do error handling in lua/vim plugins end -- cgit v1.2.3