You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2026-01-03 21:42:32 +03:00
Consistency with sendResponse
This commit is contained in:
@@ -62,7 +62,7 @@ function sendResponse(event, res) {
|
||||
|
||||
function sendError(event, msg, nestedError) {
|
||||
console.error("Action:" + event.data.action + " failed with message: " + msg);
|
||||
const data = event.data;
|
||||
const data = JSON.parse(JSON.stringify(event.data);
|
||||
data.response = {
|
||||
error: {
|
||||
message: msg,
|
||||
|
||||
Reference in New Issue
Block a user