]> gitweb.factorcode.org Git - factor.git/commitdiff
ui.tools.debugger: don't throw an error if world has no children
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Thu, 14 May 2009 03:42:38 +0000 (22:42 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Thu, 14 May 2009 03:42:38 +0000 (22:42 -0500)
basis/ui/tools/debugger/debugger.factor

index f3f533e68170b0587b4daaa4c18bc790f04ceec0..2c653266e53ba863f7a85bd97360a1a317a9242b 100755 (executable)
@@ -60,7 +60,8 @@ M: debugger focusable-child*
 
 GENERIC: error-in-debugger? ( error -- ? )
 
-M: world-error error-in-debugger? world>> gadget-child debugger? ;
+M: world-error error-in-debugger?
+    world>> children>> [ f ] [ first debugger? ] if-empty ;
 
 M: object error-in-debugger? drop f ;