Skip to content

Surface Clay errors in RenderResult instead of swallowing them #19

Description

@cowboyd

Motivation

The Clay error handler in clayterm.c currently silently swallows all errors:

static void clay_error(Clay_ErrorData err) { (void)err; }

This means duplicate IDs, capacity overflows, and other Clay diagnostics are invisible to callers. These should be surfaced in the render result so callers can detect and respond to layout issues.

Approach

Add an errors/warnings field to RenderResult and populate it from a Clay error handler that collects errors during the render transaction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions