]> gitweb.factorcode.org Git - factor.git/commitdiff
Mason requires a hostname now (things break if this is an empty string)
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 21 Jan 2010 06:42:07 +0000 (00:42 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 22 Jan 2010 18:59:30 +0000 (12:59 -0600)
extra/mason/common/common.factor

index cac4180abd53c74a44a3e904c9d13980497f531d..912cd48c79387c945dbe03b32df5c51f65ed2bc9 100644 (file)
@@ -8,8 +8,10 @@ calendar.format arrays mason.config locals debugger fry
 continuations strings io.sockets ;
 IN: mason.common
 
+ERROR: no-host-name ;
+
 : short-host-name ( -- string )
-    host-name "." split1 drop ;
+    host-name "." split1 drop [ no-host-name ] unless* ;
 
 SYMBOL: current-git-id