1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-06-17 00:09:56 -04:00

fix error usage

This commit is contained in:
Darien Raymond
2018-01-18 11:35:04 +01:00
parent fbfbbb8841
commit 14176a340d
2 changed files with 3 additions and 4 deletions

View File

@@ -31,8 +31,7 @@ func (a *InternalAccount) Equals(account protocol.Account) bool {
func (a *Account) AsAccount() (protocol.Account, error) {
id, err := uuid.ParseString(a.Id)
if err != nil {
newError("failed to parse ID").Base(err).AtError().WriteToLog()
return nil, err
return nil, newError("failed to parse ID").Base(err).AtError()
}
protoID := protocol.NewID(id)
return &InternalAccount{