1 ! (c)2010 Joe Groff bsd license
2 USING: accessors debugger io kernel make math.parser
3 prettyprint source-files.errors summary ;
4 IN: source-files.errors.debugger
6 CONSTANT: +listener-input+ "<Listener input>"
8 : error-location ( error -- string )
10 [ path>> [ % ] [ +listener-input+ % ] if* ]
11 [ line#>> [ ": " % # ] when* ] bi
14 M: source-file-error summary error>> summary ;
16 M: source-file-error error.
17 [ error-location print nl ]
18 [ asset>> [ "Asset: " write short. nl ] when* ]