From d68802927ae088846a6b9001b71d99acbd836ea4 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 9037574e28a5b..f782d1fdd35b7 100644 --- a/app/code/Magento/Translation/Model/Js/DataProvider.php +++ b/app/code/Magento/Translation/Model/Js/DataProvider.php @@ -114,7 +114,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 8a7ee22caf70817f8b0f34e702792f2406d180dd 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 f782d1fdd35b7..a1cfab00b6c8d 100644 --- a/app/code/Magento/Translation/Model/Js/DataProvider.php +++ b/app/code/Magento/Translation/Model/Js/DataProvider.php @@ -115,7 +115,7 @@ public function getData($themePath) } catch (\Exception $e) { throw new LocalizedException( __('Error while translating phrase "%s" in file %s.', $phrase, $filePath[0]), - $e + $e ); } }