diff --git a/cmd/aya/main.go b/cmd/aya/main.go index 9eff29f..71a7107 100644 --- a/cmd/aya/main.go +++ b/cmd/aya/main.go @@ -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) }