Monorepo for Tangled tangled.org

appview: state: more verbose error message to track errors

found `db.Make` can fail with error message like "no such column: did"
which lacks some context to locate the exact where error occured

added some context following other error return statements in
`state.Make()`

Signed-off-by: Seongmin Lee <boltlessengineer@proton.me>

authored by boltless.me and committed by Tangled 1fda9c43 bcf82fd3

Changed files
+2 -2
appview
state
+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)