diff options
| author | Daniel Weipert <code@drogueronin.de> | 2021-11-28 12:19:26 +0100 | 
|---|---|---|
| committer | Daniel Weipert <code@drogueronin.de> | 2022-01-10 13:28:28 +0100 | 
| commit | 20c63c36b57f652d38c67666adf764dc37920056 (patch) | |
| tree | 310ec2bba1de791cc14b24304593797c71fb9438 /lua | |
| parent | 048b3591e3434b0161911e59abc6759526731378 (diff) | |
Exit script on error
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/rclone.lua | 2 | 
1 files changed, 2 insertions, 0 deletions
| 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 | 
