Skip to content

Handle exceptions and call Invocation Error endpoint #4

@jberger

Description

@jberger

Hi, I'm just checking out this layer and it seems incredibly helpful! Thanks for providing it.

While reading the code I notice that you don't handle exceptions but rather rely on it calling the default script exception handler. Have you considered using an eval block around the function call to trap exceptions and report them to https://docs.aws.amazon.com/lambda/latest/dg/runtimes-api.html#runtimes-api-invokeerror . Indeed after that you might want to do the same with the require statement to catch compile errors too.

Anyway, thanks a lot and I expect I'll be using this layer going forward! Cheers.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions