]> gitweb.factorcode.org Git - factor.git/commitdiff
debugger: adding strerror of the errno to io-error.
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 1 Oct 2015 15:15:14 +0000 (08:15 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 1 Oct 2015 15:15:39 +0000 (08:15 -0700)
basis/debugger/debugger.factor

index 50a13b5008c73e6866ec581bea6071681b7e2914..3857a0328a04e1c25d4aafa804344244d449918d 100755 (executable)
@@ -6,7 +6,7 @@ combinators combinators.short-circuit compiler.errors
 compiler.units continuations definitions destructors
 effects.parser fry generic generic.math generic.parser
 generic.single grouping io io.encodings io.styles kernel
-kernel.private lexer make math math.order math.parser
+kernel.private lexer libc make math math.order math.parser
 math.ratios namespaces parser prettyprint sequences
 sequences.private slots source-files.errors strings
 strings.parser summary system vocabs vocabs.loader vocabs.parser
@@ -84,7 +84,7 @@ M: string error. print ;
     "Object did not survive image save/load: " write third . ;
 
 : io-error. ( error -- )
-    "I/O error #" write third . ;
+    "I/O error #" write third [ . ] [ strerror print ] bi ;
 
 : type-check-error. ( obj -- )
     "Type check error" print