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:
shinyoukai
2025-12-18 12:27:13 +00:00
parent dfad52be55
commit 15ff43ba7a

View File

@@ -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)
}