From 19fa3adba8e0bacbbbac3dfc1430af06fe24e7c1 Mon Sep 17 00:00:00 2001 From: Wouter Samaey Date: Wed, 25 Jul 2018 14:28:47 +0200 Subject: [PATCH 1/2] Added missing exception cause for better error handling Added missing exception cause for better error handling --- app/code/Magento/Translation/Model/Js/DataProvider.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/Translation/Model/Js/DataProvider.php b/app/code/Magento/Translation/Model/Js/DataProvider.php index a73d4ee99b5d6..453035793a659 100644 --- a/app/code/Magento/Translation/Model/Js/DataProvider.php +++ b/app/code/Magento/Translation/Model/Js/DataProvider.php @@ -113,7 +113,8 @@ public function getData($themePath) } } catch (\Exception $e) { throw new LocalizedException( - __('Error while translating phrase "%s" in file %s.', $phrase, $filePath[0]) + __('Error while translating phrase "%s" in file %s.', $phrase, $filePath[0]), + $e ); } } From 32f8454120c287422b1b7bfdbe780cc29a0fe51a Mon Sep 17 00:00:00 2001 From: Ihor Sviziev Date: Thu, 26 Jul 2018 17:43:39 +0300 Subject: [PATCH 2/2] magento/magento2#17122 Added missing exception cause for better error handling Replace tabs with spaces --- app/code/Magento/Translation/Model/Js/DataProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Translation/Model/Js/DataProvider.php b/app/code/Magento/Translation/Model/Js/DataProvider.php index 453035793a659..7aad7c765bcd5 100644 --- a/app/code/Magento/Translation/Model/Js/DataProvider.php +++ b/app/code/Magento/Translation/Model/Js/DataProvider.php @@ -114,7 +114,7 @@ public function getData($themePath) } catch (\Exception $e) { throw new LocalizedException( __('Error while translating phrase "%s" in file %s.', $phrase, $filePath[0]), - $e + $e ); } }