Skip to content

Commit 139d8e6

Browse files
authored
Change the order of calling (#279)
1 parent e35d261 commit 139d8e6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/code/Meta/Sales/Observer/Order/Cancel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private function cancelOrder(int $storeId, string $fbOrderId)
105105
throw new Exception(__(
106106
'Error code: "%1"; Error message: "%2"',
107107
(string)$body->error->code,
108-
(string)($body->error->message ?? $body->error->error_user_msg)
108+
(string)($body->error->error_user_msg ?? $body->error->message)
109109
));
110110
}
111111
}

app/code/Meta/Sales/Observer/Order/MarkAsShipped.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function execute(Observer $observer)
101101
throw new Exception(__(
102102
'Error code: "%1"; Error message: "%2"',
103103
(string)$body->error->code,
104-
(string)($body->error->message ?? $body->error->error_user_msg)
104+
(string)($body->error->error_user_msg ?? $body->error->message)
105105
));
106106
}
107107
}

app/code/Meta/Sales/Observer/Order/Refund.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private function refundOrder(
177177
throw new Exception(__(
178178
'Error code: "%1"; Error message: "%2"',
179179
(string)$body->error->code,
180-
(string)($body->error->message ?? $body->error->error_user_msg)
180+
(string)($body->error->error_user_msg ?? $body->error->message)
181181
));
182182
}
183183
}

0 commit comments

Comments
 (0)