Skip to content

Commit

Permalink
ENGCOM-2554: Added missing exception cause for better error handling #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Idolov authored Jul 31, 2018
2 parents f92de64 + be2525c commit efada44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/code/Magento/Translation/Model/Js/DataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
}
Expand Down

0 comments on commit efada44

Please sign in to comment.