Code cleanup

This commit is contained in:
Dane Everitt
2020-04-10 18:03:35 -07:00
parent c57708d1e0
commit af241f3de4
5 changed files with 17 additions and 56 deletions

View File

@@ -86,7 +86,7 @@ func rootCmdRun(*cobra.Command, []string) {
zap.S().Infow("finished ensuring file permissions")
}
if err := server.LoadDirectory("data/servers", &c.System); err != nil {
if err := server.LoadDirectory(); err != nil {
zap.S().Fatalw("failed to load server configurations", zap.Error(errors.WithStack(err)))
return
}