We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6af077 commit 66e5aa1Copy full SHA for 66e5aa1
src/index.ts
@@ -63,6 +63,11 @@ class ServerlessPlugin {
63
this.serverless.cli.log(chalk.green('Valid template'));
64
return Promise.resolve();
65
} catch (e) {
66
+ if (e.message.toString().match(/Access Denied/i)) {
67
+ // eslint-disable-next-line max-len
68
+ this.serverless.cli.log(chalk.yellow('Unable to access template file. Likely due to Serverless skipping deployment. Check logs to confirm'));
69
+ return Promise.resolve();
70
+ }
71
this.serverless.cli.log(chalk.red(`Template is invalid. Error: ${e}`));
72
return Promise.reject(e);
73
}
0 commit comments