Add better error handling for TOML failiures #38

Open
opened 2026-09-01 01:58:53 +00:00 by FeTetra · 0 comments
Owner

Currently, Patchwork doesn't bother with handling errors returned by badtoml functions. The returned values are found in toml.h in an enumerator.

typedef enum {
    TOML_ERRNO_SUCCESS,
    TOML_ERRNO_PARSE_FAIL,
    TOML_ERRNO_EOF,
    TOML_ERRNO_SECTION,
    TOML_ERRNO_INVALID,
} TOMLErrno;
Currently, Patchwork doesn't bother with handling errors returned by `badtoml` functions. The returned values are found in `toml.h` in an enumerator. ```c typedef enum { TOML_ERRNO_SUCCESS, TOML_ERRNO_PARSE_FAIL, TOML_ERRNO_EOF, TOML_ERRNO_SECTION, TOML_ERRNO_INVALID, } TOMLErrno; ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
HugeSpaceship/patchwork#38
No description provided.