Show stack on error better

This commit is contained in:
Dane Everitt 2019-12-22 14:54:36 -08:00
parent 2d0faadeb6
commit 7f8e0cc66b
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -69,8 +69,8 @@ func main() {
zap.S().Infow("finished ensuring file permissions")
}
if err := server.LoadDirectory("data/servers",&c.System); err != nil {
zap.S().Fatalw("failed to load server configurations", zap.Error(err))
if err := server.LoadDirectory("data/servers", &c.System); err != nil {
zap.S().Fatalw("failed to load server configurations", zap.Error(errors.WithStack(err)))
return
}