@@ -110,7 +110,10 @@ func (i *Integration) Register(_ context.Context, req *sdk.RegistrationRequest)
110
110
- To: %s
111
111
`
112
112
body := fmt .Sprintf (tpl , i .Describe ().ID , i .Describe ().Version , host , port , user , from , to )
113
- sendEmail (host , port , user , password , from , to , "" , subject , body )
113
+ err = sendEmail (host , port , user , password , from , to , "" , subject , body )
114
+ if err != nil {
115
+ return nil , fmt .Errorf ("sending an email: %w" , err )
116
+ }
114
117
115
118
return response , nil
116
119
}
@@ -187,7 +190,10 @@ func (i *Integration) Execute(_ context.Context, req *sdk.ExecutionRequest) erro
187
190
This email has been delivered via integration %s version %s.
188
191
`
189
192
body := fmt .Sprintf (tpl , req .WorkflowID , jsonBytes , i .Describe ().ID , i .Describe ().Version )
190
- sendEmail (host , port , user , password , from , to , ac .Cc , subject , body )
193
+ err = sendEmail (host , port , user , password , from , to , ac .Cc , subject , body )
194
+ if err != nil {
195
+ return fmt .Errorf ("sending an email: %w" , err )
196
+ }
191
197
192
198
return nil
193
199
}
0 commit comments