Messed-up error message when importing empty file

Bug #315043 reported by Jeroen T. Vermeulen
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Jeroen T. Vermeulen

Bug Description

With the fix to bug 283063, uploading an empty file produces a more helpful error message for the user.

However, the patch accidentally provides the error message in the place where the exception constructor expects a line number. It still works, in a way, but the email the user receives says (among more sensible text):

  File contains no messages.: Unknown syntax error

Changed in rosetta:
assignee: nobody → jtv
importance: Undecided → Medium
milestone: none → 2.2.1
status: New → In Progress
Changed in rosetta:
status: In Progress → Fix Committed
Changed in rosetta:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.