Skip to content

Commit

Permalink
fix: add error logging for ResourceNotReadyException in Exec function
Browse files Browse the repository at this point in the history
- Add error logging for `ResourceNotReadyException` in `Exec` function of plugin.go file.

Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Apr 3, 2023
1 parent d31c687 commit f6d8838
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ func (p Plugin) Exec() error {
log.Println(lambda.ErrCodeCodeStorageExceededException, aerr.Error())
case lambda.ErrCodeResourceConflictException:
log.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
case lambda.ErrCodeResourceNotReadyException:
log.Println(lambda.ErrCodeResourceNotReadyException, aerr.Error())
default:
log.Println(aerr.Error())
}
Expand Down

0 comments on commit f6d8838

Please sign in to comment.