Browse Source

Fix ReadFile error logging

main
Matt Baer 3 years ago
parent
commit
1268e5c133
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app.go

+ 1
- 1
app.go View File

@@ -49,7 +49,7 @@ func Serve(cfg *Config) {
if cfg.UserFile != "" {
f, err := ioutil.ReadFile(cfg.UserFile)
if err != nil {
log.Fatal("File error: %v\n", err)
log.Fatalf("File error: %v", err)
}

err = json.Unmarshal(f, &app.singleUser)


Loading…
Cancel
Save