Skip to content

Commit 2cea5c8

Browse files
author
Stanislav Idolov
authored
ENGCOM-2662: [Forwardport] Added missing exception cause for better error handling #17312
2 parents 7bb0eb6 + b1f1d81 commit 2cea5c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Translation/Model/Js/DataProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ public function getData($themePath)
113113
}
114114
} catch (\Exception $e) {
115115
throw new LocalizedException(
116-
__('Error while translating phrase "%s" in file %s.', $phrase, $filePath[0])
116+
__('Error while translating phrase "%s" in file %s.', $phrase, $filePath[0]),
117+
$e
117118
);
118119
}
119120
}

0 commit comments

Comments
 (0)