(error symbol string) -> error
(error symbol1 string symbol2) -> error
Error: my-error: My error has occurred. DS: 3[ my-error My error has occurred. 2 ] RS: 15[ pp:8c3fc8 ip:8c3fdc () pp:8cbc00 0 pp:8cbc00 ip:8cbda4 (#2( () #f )) < func repl/940c78> 0 pp:8cd800 ip:8cdce4 (#2( <program ...> #f ) ...) <prim error> 2 ] Trace: (error my-error My error has occurred.) (repl) (<program>)
Error: fs-error: The following file does not exist: Fnord.txt DS: 4[ fs-error The following file does not exist: Fnord.txt 3 ] RS: 15[ pp:8c3fc8 ip:8c3fdc () pp:8cbc00 0 pp:8cbc00 ip:8cbda4 (#2( () #f )) <func repl/940c78> 0 pp:8cd800 ip:8cdce4 (#2( <program ...> #f ) ...) <prim error> 3 ] Trace: (error fs-error The following file does not exist: Fnord.txt) (repl) (<program>)
Note that for this example to work, we first defined file-name as "Fnord.txt".