1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Throw capability request exception.

This commit is contained in:
Richard Lewis
2018-03-13 10:51:01 +00:00
parent de33294000
commit 53b716bad6

View File

@ -277,8 +277,7 @@ export default class WidgetMessaging extends MatrixPostMessageApi {
return this.exec({
api: OUTBOUND_API_NAME,
action: "capabilities",
}).then((response) => response.capabilities)
.catch((error) => new Error("Failed to get capabilities: " + error.message));
}).then((response) => response.capabilities);
}
}