new evolved.error_handler function

#45
This commit is contained in:
BlackMATov
2026-03-30 07:01:47 +07:00
parent e4166b7ebe
commit 3ca898bfa0
3 changed files with 101 additions and 67 deletions
+9
View File
@@ -1587,6 +1587,7 @@ process :: system... -> ()
process_with :: system, ... -> ()
debug_mode :: boolean -> ()
error_handler :: {string -> string}? -> ()
collect_garbage :: boolean? -> ()
```
@@ -1682,6 +1683,7 @@ builder_mt:destruction_policy :: id -> builder
- Slightly improved performance of modifying operations for fragments with [`ON_INSERT`](#evolvedon_insert) and [`ON_REMOVE`](#evolvedon_remove) hooks
- Slightly improved performance of queries with [`EXPLICIT`](#evolvedexplicit) fragments
- Added the new [`evolved.error_handler`](#evolvederror_handler) function that allows setting a custom error handler for better system processing debugging experience
### v1.10.0
@@ -2202,6 +2204,13 @@ function evolved.process_with(system, ...) end
function evolved.debug_mode(yesno) end
```
### `evolved.error_handler`
```lua
---@param handler? fun(message: string): string
function evolved.error_handler(handler) end
```
### `evolved.collect_garbage`
```lua