fix(i18n): pass path to wrongItemPath string, fixes #10403

This commit is contained in:
Matteo Pagliazzi
2018-05-28 13:40:49 +02:00
parent bf424573a4
commit e6cf7564b8

View File

@@ -1907,7 +1907,7 @@ api.movePinnedItem = {
let currentPinnedItemPath = user.pinnedItemsOrder[currentIndex];
if (currentIndex === -1) {
throw new BadRequest(res.t('wrongItemPath', req.language));
throw new BadRequest(res.t('wrongItemPath', {path}, req.language));
}
// Remove the one we will move