Closed Bug 1147217 Opened 11 years ago Closed 11 years ago

Improve l10n repack error message when locale doesn't contain necessary files

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox38 fixed, firefox39 fixed)

RESOLVED FIXED
mozilla39
Tracking Status
firefox38 --- fixed
firefox39 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file, 2 obsolete files)

No description provided.
Attachment #8582765 - Attachment is obsolete: true
Attachment #8582786 - Attachment is obsolete: true
Attachment #8582765 - Flags: review?(mshal)
Attachment #8582786 - Flags: review?(mshal)
Attachment #8582795 - Flags: review?(mshal)
Comment on attachment 8582795 [details] [diff] [review] Improve l10n repack error message when locale doesn't contain necessary files >+ if base not in l10n_paths: >+ errors.fatal("Locale doesn't contain %s/" % base) >+ continue >+ if e.name not in l10n_paths[base]: >+ errors.fatal("Locale doesn't have a manifest entry for '%s'" % >+ e.name) >+ continue Why did you need to add the continues here? It looks like errors.fatal() should raise an exception.
Attachment #8582795 - Flags: review?(mshal) → review+
(In reply to Michael Shal [:mshal] from comment #4) > Comment on attachment 8582795 [details] [diff] [review] > Improve l10n repack error message when locale doesn't contain necessary files > > >+ if base not in l10n_paths: > >+ errors.fatal("Locale doesn't contain %s/" % base) > >+ continue > >+ if e.name not in l10n_paths[base]: > >+ errors.fatal("Locale doesn't have a manifest entry for '%s'" % > >+ e.name) > >+ continue > > Why did you need to add the continues here? It looks like errors.fatal() > should raise an exception. errors.accumulate(), which is used in the caller, inhibits those exceptions, accumulates the errors, and then throws an aggregated exception with all the errors.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Comment on attachment 8582795 [details] [diff] [review] Improve l10n repack error message when locale doesn't contain necessary files I thought we could get away without it, but it seems we need to uplift this one for bug 1147207 to cleanly apply. Please see that bug for approval comment.
Attachment #8582795 - Flags: approval-mozilla-beta?
Comment on attachment 8582795 [details] [diff] [review] Improve l10n repack error message when locale doesn't contain necessary files Scratch that, you've already uplifted it. Sorry I missed it!
Attachment #8582795 - Flags: approval-mozilla-beta?
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: