From c21d59441eaa1d8eaf1d384b8acef7eb687d4da7 Mon Sep 17 00:00:00 2001 From: Devon Hudson Date: Tue, 25 Apr 2023 18:20:10 -0600 Subject: [PATCH] Pass up just the internal err in PerformJoin --- federationapi/internal/perform.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/federationapi/internal/perform.go b/federationapi/internal/perform.go index 38e4d6248..65985e740 100644 --- a/federationapi/internal/perform.go +++ b/federationapi/internal/perform.go @@ -169,7 +169,7 @@ func (r *FederationInternalAPI) performJoinUsingServer( } else { r.statistics.ForServer(joinErr.ServerName).Success(statistics.SendDirect) } - return joinErr + return joinErr.Err } r.statistics.ForServer(serverName).Success(statistics.SendDirect) if response == nil {