You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 16, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: pkg/builtin/functions.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ var (
19
19
"delete": functions.NewBuilder(deleteFunction).WithBangHandler(deleteBangHandler).WithDescription("removes a key from an object or an item from a vector").Build(),
20
20
"do": functions.NewBuilder(doFunction).WithDescription("eval a sequence of statements where only one expression is valid").Build(),
21
21
"empty?": functions.NewBuilder(isEmptyFunction).WithCoalescer(humaneCoalescer).WithDescription("returns true when the given value is empty-ish (0, false, null, \"\", ...)").Build(),
22
-
"error": functions.NewBuilder(errorFunction).WithDescription("returns an error").Build(),
22
+
"error": functions.NewBuilder(errorFunction, fmtErrorFunction).WithDescription("returns an error").Build(),
23
23
"has?": functions.NewBuilder(hasFunction).WithDescription("returns true if the given symbol's path expression points to an existing value").Build(),
24
24
"if": functions.NewBuilder(ifElseFunction, ifFunction).WithDescription("evaluate one of two expressions based on a condition").Build(),
25
25
"set": functions.NewBuilder(setFunction).WithDescription("set a value in a variable/document, only really useful with ! modifier (set!)").Build(),
0 commit comments