aboutsummaryrefslogtreecommitdiff
path: root/clientapi/routing/upgrade_room.go
diff options
context:
space:
mode:
Diffstat (limited to 'clientapi/routing/upgrade_room.go')
-rw-r--r--clientapi/routing/upgrade_room.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/clientapi/routing/upgrade_room.go b/clientapi/routing/upgrade_room.go
index 744e2d88..34c7eb00 100644
--- a/clientapi/routing/upgrade_room.go
+++ b/clientapi/routing/upgrade_room.go
@@ -64,7 +64,9 @@ func UpgradeRoom(
}
upgradeResp := roomserverAPI.PerformRoomUpgradeResponse{}
- rsAPI.PerformRoomUpgrade(req.Context(), &upgradeReq, &upgradeResp)
+ if err := rsAPI.PerformRoomUpgrade(req.Context(), &upgradeReq, &upgradeResp); err != nil {
+ return jsonerror.InternalAPIError(req.Context(), err)
+ }
if upgradeResp.Error != nil {
if upgradeResp.Error.Code == roomserverAPI.PerformErrorNoRoom {