aboutsummaryrefslogtreecommitdiff
path: root/appservice
diff options
context:
space:
mode:
authorAlex Chen <Cnly@users.noreply.github.com>2019-08-07 00:02:12 +0800
committerGitHub <noreply@github.com>2019-08-07 00:02:12 +0800
commit324ca22b358d53339b2971ec85a02de7282604e6 (patch)
tree0f70e622f8c2667cf9c53a897143d2afc0863938 /appservice
parent66bf615360cfe6eac11e901ffe34f70f97330a22 (diff)
Implement profile retrieval over federation (#726)
Diffstat (limited to 'appservice')
-rw-r--r--appservice/api/query.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/appservice/api/query.go b/appservice/api/query.go
index 8ce3b4e0..9542df56 100644
--- a/appservice/api/query.go
+++ b/appservice/api/query.go
@@ -20,13 +20,13 @@ package api
import (
"context"
"database/sql"
- "errors"
"net/http"
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
"github.com/matrix-org/dendrite/clientapi/auth/storage/accounts"
"github.com/matrix-org/gomatrixserverlib"
+ "github.com/matrix-org/dendrite/common"
commonHTTP "github.com/matrix-org/dendrite/common/http"
opentracing "github.com/opentracing/opentracing-go"
)
@@ -164,7 +164,7 @@ func RetrieveUserProfile(
// If no user exists, return
if !userResp.UserIDExists {
- return nil, errors.New("no known profile for given user ID")
+ return nil, common.ErrProfileNoExists
}
// Try to query the user from the local database again