diff options
Diffstat (limited to 'lua/rclone.lua')
-rw-r--r-- | lua/rclone.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/rclone.lua b/lua/rclone.lua index 4403fee..84915a8 100644 --- a/lua/rclone.lua +++ b/lua/rclone.lua @@ -104,6 +104,12 @@ local function get_remote_config(remote) -- TODO: check how to do error handling in lua/vim plugins end + if target_config.vim_rclone_local_path == nil or target_config.vim_rclone_local_path == '' or + target_config.vim_rclone_remote_path == nil or target_config.vim_rclone_remote_path == '' then + print("Couldn't find suitable remote") + os.exit() + end + return target_remote, target_config end |