From 495f156dcee3196cc89ca265256c5aba2c92bbbf Mon Sep 17 00:00:00 2001 From: Ryan Schumacher Date: Mon, 20 Aug 2018 12:06:31 -0500 Subject: [PATCH] Add error message for configuring/installing When running `serverless dynamodb install` I was getting no error and it seemed to be installing, but I was having an issue with the directory not being correct. --- dynamodb/installer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dynamodb/installer.js b/dynamodb/installer.js index 60251b0..d34862f 100644 --- a/dynamodb/installer.js +++ b/dynamodb/installer.js @@ -55,6 +55,8 @@ var install = function (config, callback) { utils.createDir(config.setup.install_path); download(download_url, install_path, callback); } - } catch (e) {} + } catch (err) { + throw new Error("Error configuring or installing Dynamodb local " + err); + } }; module.exports.install = install;