Fix: Go was refusing to compile due to a unused variable, so actually use it
git-svn-id: file:///srv/svn/repo/aya/trunk@96 cec141ff-132a-4243-88a5-ce187bd62f94
This commit is contained in:
@@ -52,7 +52,8 @@ func main() {
|
||||
case "serve":
|
||||
d, err := os.Stat(PUBDIR)
|
||||
if err != nil {
|
||||
log.Fatalf("\033[0;31m%s\033[0m\n", "I see, you want me to serve a non-existent directory, huh?")
|
||||
log.Printf("\033[0;31m%s\033[0m\n", "I see, you want me to serve a non-existent directory, huh?")
|
||||
log.Fatalf("%v: no such file or directory\n", d)
|
||||
} else {
|
||||
aya.HttpServe(PUBDIR, 8000)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user