File tree Expand file tree Collapse file tree 3 files changed +8
-32
lines changed
Expand file tree Collapse file tree 3 files changed +8
-32
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11{
22 "name" : " serverless-git-version-compare" ,
3- "version" : " 1.0.0 " ,
3+ "version" : " 1.0.1 " ,
44 "main" : " src/plugin.js" ,
55 "scripts" : {
66 "test" : " jest tests/" ,
Original file line number Diff line number Diff line change @@ -96,8 +96,13 @@ class GitVersionComparePlugin {
9696 * @returns {Promise<string|null> }
9797 */
9898 async getDeployedCommit ( ) {
99- const stackName = this . provider . naming . getStackName ( ) ;
100- return await this . getCurrentDeployedCommit ( stackName ) ;
99+ try {
100+ const stackName = this . provider . naming . getStackName ( ) ;
101+ return await this . getCurrentDeployedCommit ( stackName ) ;
102+ } catch ( error ) {
103+ this . log . error ( `Error getting stack name: ${ error } ` ) ;
104+ return null ;
105+ }
101106 }
102107
103108 /**
You can’t perform that action at this time.
0 commit comments