1 ! Copyright (C) 2008, 2011 Slava Pestov.
2 ! See https://factorcode.org/license.txt for BSD license.
3 USING: accessors debugger continuations threads io io.styles
4 prettyprint kernel make math.parser namespaces ;
7 : error-in-thread. ( thread -- )
8 "Error in thread " write
12 ", " % dup quot>> unparse-short % ")" %
13 ] "" make swap write-object ":" print ;
15 ! ( error thread -- * )
17 dup initial-thread get-global eq? [
28 ] thread-error-hook set-global