+2
-2
appview/state/state.go
+2
-2
appview/state/state.go
···
54
54
func Make(ctx context.Context, config *config.Config) (*State, error) {
55
55
d, err := db.Make(config.Core.DbPath)
56
56
if err != nil {
57
-
return nil, err
57
+
return nil, fmt.Errorf("failed to create db: %w", err)
58
58
}
59
59
60
60
enforcer, err := rbac.NewEnforcer(config.Core.DbPath)
61
61
if err != nil {
62
-
return nil, err
62
+
return nil, fmt.Errorf("failed to create enforcer: %w", err)
63
63
}
64
64
65
65
clock := syntax.NewTIDClock(0)