revert error format

This commit is contained in:
pocketW 2022-11-20 14:57:20 +11:00
parent 86324ff1ae
commit 2f10c3f6b8

View File

@ -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
}