some error work

This commit is contained in:
Joel Wetzell
2025-11-22 11:21:37 -06:00
parent 4b07c85508
commit 4ae5261d25
4 changed files with 60 additions and 11 deletions

View File

@@ -29,12 +29,15 @@ func main() {
if err != nil {
return err
}
router, err := showbridge.NewRouter(ctx, config)
if err != nil {
return err
router, moduleErrors, routeErrors := showbridge.NewRouter(ctx, config)
for _, moduleError := range moduleErrors {
slog.Error("problem initializing module", "index", moduleError.Index, "error", moduleError.Error)
}
for _, routeError := range routeErrors {
slog.Error("problem initializing module", "index", routeError.Index, "error", routeError.Error)
}
router.Run()
return nil
},
}