Skip to content

Commit aa0e4ce

Browse files
committed
fix coderabbitai commit
1 parent ded7bb8 commit aa0e4ce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

components/sendgrid/actions/create-send/create-send.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,12 @@ export default {
150150
$.export("$summary", `Successfully created single send ${this.name}`);
151151
return resp;
152152
} catch (e) {
153-
} catch (e) {
154-
if (e.response && e.response.data && e.response.data.errors && e.response.data.errors.length > 0) {
153+
if (
154+
e.response
155+
&& e.response.data
156+
&& e.response.data.errors
157+
&& e.response.data.errors.length > 0
158+
) {
155159
throw new ConfigurationError(e.response.data.errors[0].message);
156160
} else {
157161
throw new ConfigurationError("An unexpected error occurred.");

0 commit comments

Comments
 (0)