Skip to content

Commit 663427e

Browse files
committed
Debugging auth errors.
1 parent c155053 commit 663427e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dhrn-functions/packages/dhrn/sendmail/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ def main(args):
2323
client.send(mail)
2424
except mt.exceptions.AuthorizationError as e:
2525
# Handle the authorization error here
26-
return {"error": "Mailtrap authorization error {MAILTRAP_API_TOKEN}"}
26+
return {"error": f"Mailtrap authorization error {MAILTRAP_API_TOKEN}", "body": args}
2727

2828
return {"body": args}

0 commit comments

Comments
 (0)