---
title: RELKIT_EVENT_FUNCTION_RESULT_INVALID
description: "Event function returns a value."
pagination: false
search:
  keywords: [RELKIT_EVENT_FUNCTION_RESULT_INVALID]
sidebar:
  icon: triangle-alert
---

{/* Generated by apps/docs/scripts/generate.ts. Do not edit. */}

**Event function returns a value.**

## What happened

An event function's handler returns a value on success. Event functions must return nothing.

## What to do

Return `void` from the handler on success, and use declared errors for failures.

Reported by `@relkit/cli`, `relkit/diagnostics`.

See [all error codes](/docs/errors).
