mirror of
https://github.com/XrayR-project/XrayR.git
synced 2025-06-08 21:39:55 +00:00
revert error format
This commit is contained in:
parent
86324ff1ae
commit
2f10c3f6b8
@ -102,7 +102,7 @@ func (l *Limiter) UpdateInboundLimiter(tag string, updatedUserList *[]api.UserIn
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return newError("no such inbound in limiter: %s", tag).AtError()
|
||||
return fmt.Errorf("no such inbound in limiter: %s", tag)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@ -137,7 +137,7 @@ func (l *Limiter) GetOnlineDevice(tag string) (*[]api.OnlineUser, error) {
|
||||
return true
|
||||
})
|
||||
} else {
|
||||
return nil, newError("no such inbound in limiter: %s", tag).AtError()
|
||||
return nil, fmt.Errorf("no such inbound in limiter: %s", tag)
|
||||
}
|
||||
return &onlineUser, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user