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

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