Skip to content

Commit

Permalink
Bug 1311122 - Ensure missing file errors get reported despite missing…
Browse files Browse the repository at this point in the history
… base path in l10n.py. r=glandium
  • Loading branch information
aleth committed Oct 18, 2016
1 parent 26495b3 commit 9b281c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/mozbuild/mozpack/packager/l10n.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,11 @@ def _repack(app_finder, l10n_finder, copier, formatter, non_chrome=set()):
files = [f for p, f in l10n_finder.find(path)]
if not len(files):
if base not in non_chrome:
finderBase = ""
if hasattr(l10n_finder, 'base'):
finderBase = l10n_finder.base
errors.error("Missing file: %s" %
os.path.join(l10n_finder.base, path))
os.path.join(finderBase, path))
else:
packager.add(path, files[0])
else:
Expand Down

0 comments on commit 9b281c4

Please sign in to comment.