mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-04 16:11:11 -04:00
Fix mixed-up error messages
The too many pages error was being returned when the file couldn’t be read. This commit corrects the error message, and adds a test to make sure this case is covered.
This commit is contained in:
@@ -610,8 +610,8 @@ LETTER_VALIDATION_MESSAGES = {
|
||||
'<br>Save a new copy of your file and try again.'
|
||||
),
|
||||
'summary': (
|
||||
'Letters must be 10 pages or less. <br>'
|
||||
'This letter is {page_count} pages long.'
|
||||
'Validation failed because Notify cannot read this PDF.<br>'
|
||||
'Save a new copy of your file and try again.'
|
||||
),
|
||||
},
|
||||
'address-is-empty': {
|
||||
|
||||
Reference in New Issue
Block a user