Skip to content

Commit b1f1d81

Browse files
ENGCOM-2662: [Forwardport] Added missing exception cause for better error handling #17312
- Merge Pull Request #17312 from mage2pratik/magento2:2.3-develop-PR-port-17122 - Merged commits: 1. 19fa3ad 2. 32f8454
2 parents a5107ab + 32f8454 commit b1f1d81

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)