From 7d728e509fddaa57ce5adbbdb0a45ea049ed93e2 Mon Sep 17 00:00:00 2001 From: Philipp Muens Date: Tue, 8 Oct 2019 12:03:59 +0200 Subject: [PATCH] Update error message --- lib/classes/PluginManager.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/classes/PluginManager.js b/lib/classes/PluginManager.js index 36ea54b4c..b4a58e907 100644 --- a/lib/classes/PluginManager.js +++ b/lib/classes/PluginManager.js @@ -555,9 +555,11 @@ class PluginManager { validateServerlessConfigDependency(command) { if ('configDependent' in command && command.configDependent) { if (!this.serverlessConfigFile) { - throw new this.serverless.classes.Error( - 'This command can only be run in a Serverless service directory' - ); + const msg = [ + 'This command can only be run in a Serverless service directory. ', + "Make sure to reference a valid config file in the current working directory if you're using a custom config file", + ].join(''); + throw new this.serverless.classes.Error(msg); } } }