From d38b42f7c70461bf3df57cd0149e59638dfeae87 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Fri, 22 Mar 2019 17:27:20 +0000 Subject: [PATCH] AWS Plugin: Don't error when no files to load --- plugins/tiddlywiki/aws/modules/command.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/tiddlywiki/aws/modules/command.js b/plugins/tiddlywiki/aws/modules/command.js index 294f182bd..880eea924 100644 --- a/plugins/tiddlywiki/aws/modules/command.js +++ b/plugins/tiddlywiki/aws/modules/command.js @@ -59,8 +59,8 @@ Command.prototype.subCommands["s3-load"] = function() { bucket = this.params[2], filepaths = this.params.slice(3); // Check parameters - if(!region || !bucket || filepaths.length < 1) { - throw "Missing parameters"; + if(!region || !bucket) { + self.callback("Missing parameters"); } async.eachLimit( filepaths,