Update error message

This commit is contained in:
Philipp Muens 2019-10-08 12:03:59 +02:00
parent 36e8902cd1
commit 7d728e509f

View File

@ -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);
}
}
}