/** * Fatal errors are re-thrown to kill the lambda run and thereby alert * developers to the problem. Non-fatal errors are returned as a data structure * delivered to the Lambda caller. */ export default function handleLifecycleError(err: Error): { name: string; message: string; };