aboutsummaryrefslogtreecommitdiff
path: root/clientapi/userutil
diff options
context:
space:
mode:
authorRyan W <twentybitdev@gmail.com>2021-09-08 17:31:03 +0100
committerGitHub <noreply@github.com>2021-09-08 17:31:03 +0100
commita624eab309ee6ee7b3540dfba884a42c9a4f4ad9 (patch)
tree92ec39ba2d0f512891dcb20635ee9bc660b45b18 /clientapi/userutil
parent7dc8fb1fe780888d5758bf665949e9e09d21e56a (diff)
- Removed double imports (#1989)
- Lower cased error messages Signed-off-by: Ryan Whittington <twentybitdev@gmail.com> Co-authored-by: kegsay <kegan@matrix.org>
Diffstat (limited to 'clientapi/userutil')
-rw-r--r--clientapi/userutil/userutil.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/clientapi/userutil/userutil.go b/clientapi/userutil/userutil.go
index 4cea3c18..7e909ffa 100644
--- a/clientapi/userutil/userutil.go
+++ b/clientapi/userutil/userutil.go
@@ -31,11 +31,11 @@ func ParseUsernameParam(usernameParam string, expectedServerName *gomatrixserver
lp, domain, err := gomatrixserverlib.SplitID('@', usernameParam)
if err != nil {
- return "", errors.New("Invalid username")
+ return "", errors.New("invalid username")
}
if expectedServerName != nil && domain != *expectedServerName {
- return "", errors.New("User ID does not belong to this server")
+ return "", errors.New("user ID does not belong to this server")
}
localpart = lp