Reference · Records and errors
error
signature
error(any) -> anyWhat it does
What an error value says, and null for any other value, so it can be asked of anything:
a value that did not fail has no error, whatever it is. r.error and r.message give the
same. On a server, what it gives is plain text: an error Quillo made is hidden from visitors
until it is read this way, so do not send it on.
Examples
print(error(err("not found")))print(error(int("x")))print(error(5))output
not foundnot an int: "x"nullThread
Thread 0 posts
On error(): questions, tips, corrections, and code that uses it.
No posts yet. The first one opens the thread.
Edit this page on GitHub · every example's output was made by running it (tools/refcheck.mjs) · questions on Discord or r/quillo