We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 051932b commit b8d9007Copy full SHA for b8d9007
apps/meteor/app/api/server/v1/rooms.ts
@@ -1108,7 +1108,7 @@ export const roomEndpoints = API.v1
1108
await FederationMatrix.handleInvite(roomId, this.userId, action);
1109
return API.v1.success();
1110
} catch (error) {
1111
- throw new Meteor.Error(`Failed to handle invite: ${error instanceof Error ? error.message : String(error)}`);
+ return API.v1.failure({ error: `Failed to handle invite: ${error instanceof Error ? error.message : String(error)}` });
1112
}
1113
},
1114
)
0 commit comments