faizanbashir/python-ses-dynamodb-contactform

Ajax hangs on "Sending Mail..." when Lambda error

Opened this issue · 0 comments

My lambda instance returned: {errorMessage: "Syntax error in module 'handler'"} but the javascript code didn't report it as an error to the user, it just hung on "Sending Mail...". It would be nice for the javascript to handle all types of errors and report them to the user visually.