fix: Ensure to report validation errors with ServerlessError

This commit is contained in:
Mariusz Nowak 2021-01-19 16:31:13 +01:00 committed by Mariusz Nowak
parent 90a9ffed63
commit 813f7d3dbe

View File

@ -29,6 +29,7 @@ class Serverless {
this.configurationPath = ensureString(configObject.configurationPath, {
isOptional: true,
name: 'config.configurationPath',
Error: ServerlessError,
});
if (this.configurationPath) {
this.configurationPath = path.resolve(this.configurationPath);