Consistency with sendResponse
This commit is contained in:
parent
e96a40004b
commit
1c649303e3
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ function sendResponse(event, res) {
|
||||||
|
|
||||||
function sendError(event, msg, nestedError) {
|
function sendError(event, msg, nestedError) {
|
||||||
console.error("Action:" + event.data.action + " failed with message: " + msg);
|
console.error("Action:" + event.data.action + " failed with message: " + msg);
|
||||||
const data = event.data;
|
const data = JSON.parse(JSON.stringify(event.data);
|
||||||
data.response = {
|
data.response = {
|
||||||
error: {
|
error: {
|
||||||
message: msg,
|
message: msg,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue