config_parser.parse_file errors are ignored (file treated as missing) #163

Open
opened 2026-11-24 13:51:48 +01:00 by michael · 0 comments
Owner

Goal

A parse error reaches the caller as daw_error/v1 (as cause).

Reason

parse_file returns nil, daw_error, but config.lua and detect.lua ignore it, so a broken file looks absent. modules/loader.read_require_path swallows parse errors too.

Scope

  • config.lua, detect.lua, read_require_path pass the error on

Acceptance criteria

  • error is passed on in all three places
  • tests with a syntactically broken file

Refs DAW/fragjan#157

## Goal A parse error reaches the caller as daw_error/v1 (as `cause`). ## Reason `parse_file` returns `nil, daw_error`, but `config.lua` and `detect.lua` ignore it, so a broken file looks absent. `modules/loader.read_require_path` swallows parse errors too. ## Scope - `config.lua`, `detect.lua`, `read_require_path` pass the error on ## Acceptance criteria - [ ] error is passed on in all three places - [ ] tests with a syntactically broken file Refs DAW/fragjan#157
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
DAW/fragjan#163
No description provided.