You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
oldError:=data.NewEmptyError().AppendDescF("Decrypt account bytes: %s, you can delete account file(%s) and use `account` command to reset the account", dErr, pt)
124
125
iflen(acc.Name) ==0 {
125
-
returnaccount, data.NewEmptyError().AppendDescF("Decrypt account bytes: %s, you can delete account file(%s) and use `account` command to reset the account", dErr, pt)
126
+
returnaccount, oldError
126
127
}
127
128
128
-
accs, lErr:=LookUp(acc.Name)
129
-
iflErr!=nil||len(accs) ==0 {
130
-
returnaccount, data.NewEmptyError().AppendDescF("Decrypt account bytes: %s, you can delete account file(%s) and use `account` command to reset the account", dErr, pt)
129
+
accounts, lErr:=LookUp(acc.Name)
130
+
iflErr!=nil||len(accounts) ==0 {
131
+
returnaccount, oldError
131
132
}
132
133
133
-
returnaccs[0], nil
134
+
account=accounts[0]
135
+
136
+
// 尝试替换错误缓存,失败也没关系
137
+
jsonStr, mErr:=account.value()
138
+
ifmErr!=nil {
139
+
log.WarningF("get account, get json error:%s", mErr)
0 commit comments