apex / apex-go

Golang runtime for Apex/Lambda.
MIT License
292 stars 32 forks source link

allow functions to return errorType in addition to errorMessage #59

Open savaki opened 7 years ago

savaki commented 7 years ago

Currently, when functions return an error the error.Error() is embedded into an error type. However, when using apex with AWS Step Functions, error handling is triggered on errorType rather than errorMessage.

I see function.InvokeError contains a Type field, but I can't find anywhere where it's being used.