Skip to content

Commit d688029

Browse files
committed
Added missing exception cause for better error handling
Added missing exception cause for better error handling
1 parent 7be2b8c commit d688029

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
@@ -114,7 +114,8 @@ public function getData($themePath)
114114
}
115115
} catch (\Exception $e) {
116116
throw new LocalizedException(
117-
__('Error while translating phrase "%s" in file %s.', $phrase, $filePath[0])
117+
__('Error while translating phrase "%s" in file %s.', $phrase, $filePath[0]),
118+
$e
118119
);
119120
}
120121
}

0 commit comments

Comments
 (0)