Skip to content

Commit

Permalink
home: imp err msg
Browse files Browse the repository at this point in the history
  • Loading branch information
schzhn committed Jun 26, 2023
1 parent 7d9ba98 commit dad2759
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/home/upgrade.go
Expand Up @@ -1226,7 +1226,7 @@ func upgradeSchema21to22(diskConf yobj) (err error) {
var c yobj
c, ok = val.(yobj)
if !ok {
return fmt.Errorf("persistent %d: unexpected type of client: %T", i, val)
return fmt.Errorf("persistent client at index %d: unexpected type %T", i, val)
}

var blockedVal any
Expand All @@ -1238,7 +1238,11 @@ func upgradeSchema21to22(diskConf yobj) (err error) {
var services yarr
services, ok = blockedVal.(yarr)
if !ok {
return fmt.Errorf("persistent: %d: unexpected type of blocked: %T", i, blockedVal)
return fmt.Errorf(
"persistent client at index %d: unexpected type of blocked services: %T",
i,
blockedVal,
)
}

c[field] = yobj{
Expand Down

0 comments on commit dad2759

Please sign in to comment.