Skip to content

Commit b8d9007

Browse files
authored
Apply suggestion from @ggazzo
1 parent 051932b commit b8d9007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/meteor/app/api/server/v1/rooms.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ export const roomEndpoints = API.v1
11081108
await FederationMatrix.handleInvite(roomId, this.userId, action);
11091109
return API.v1.success();
11101110
} catch (error) {
1111-
throw new Meteor.Error(`Failed to handle invite: ${error instanceof Error ? error.message : String(error)}`);
1111+
return API.v1.failure({ error: `Failed to handle invite: ${error instanceof Error ? error.message : String(error)}` });
11121112
}
11131113
},
11141114
)

0 commit comments

Comments
 (0)