udpate module and route config error objects for JSON

This commit is contained in:
Joel Wetzell
2026-03-12 17:03:03 -05:00
parent 04c8ebbe06
commit e996d84234
4 changed files with 12 additions and 12 deletions

View File

@@ -131,7 +131,7 @@ func NewRouter(config config.Config) (*Router, []module.ModuleError, []route.Rou
moduleErrors = append(moduleErrors, module.ModuleError{
Index: moduleIndex,
Config: moduleDecl,
Error: err,
Error: err.Error(),
})
continue
}
@@ -148,7 +148,7 @@ func NewRouter(config config.Config) (*Router, []module.ModuleError, []route.Rou
routeErrors = append(routeErrors, route.RouteError{
Index: routeIndex,
Config: routeDecl,
Error: err,
Error: err.Error(),
})
continue
}