Fix: separate the root of the error from the error message #1

Open
opened 2025-06-14 11:26:24 +00:00 by Ghost · 0 comments
Ghost commented 2025-06-14 11:26:24 +00:00 (Migrated from codeberg.org)

Currently, when an error occurs we return the root function alongside the error message in a single string, e.g. err.message -> "foo:28: Division by zero".

It would be better if we separate those things in err.source and err.message respectively, as sometimes we won't need to use the source file:line.

Currently, when an error occurs we return the root function alongside the error message in a single string, e.g. `err.message -> "foo:28: Division by zero"`. It would be _better_ if we separate those things in `err.source` and `err.message` respectively, as sometimes we won't need to use the source `file:line`.
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
NTBBloodbath/fallo#1
No description provided.