fs.exists/is_dir: callers treat a real error as missing #160

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

Goal

Callers tell "absent" from "real error" and pass the daw_error/v1 on.

Reason

fs.exists/fs.is_dir return false, nil (absent) or nil, err. Callers such as core/loader.lua and core/modules/loader.lua only test for falsy, so a real error counts as missing. Seen during DAW/fragjan#157.

Scope

  • every caller of fs.exists/fs.is_dir handles nil, err

Acceptance criteria

  • all callers handle the error case
  • test per caller for the error case

Refs DAW/fragjan#157

## Goal Callers tell "absent" from "real error" and pass the daw_error/v1 on. ## Reason `fs.exists`/`fs.is_dir` return `false, nil` (absent) or `nil, err`. Callers such as `core/loader.lua` and `core/modules/loader.lua` only test for falsy, so a real error counts as missing. Seen during DAW/fragjan#157. ## Scope - every caller of `fs.exists`/`fs.is_dir` handles `nil, err` ## Acceptance criteria - [ ] all callers handle the error case - [ ] test per caller for the error case 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#160
No description provided.