func lambdaPanicResponse()

in lambda/errors.go [35:46]


func lambdaPanicResponse(err interface{}) *messages.InvokeResponse_Error {
	if ive, ok := err.(messages.InvokeResponse_Error); ok {
		return &ive
	}
	panicInfo := getPanicInfo(err)
	return &messages.InvokeResponse_Error{
		Message:    panicInfo.Message,
		Type:       getErrorType(err),
		StackTrace: panicInfo.StackTrace,
		ShouldExit: true,
	}
}