mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Update error message
This commit is contained in:
parent
36e8902cd1
commit
7d728e509f
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user