Closed Bug 663030 Opened 14 years ago Closed 14 years ago

Show a useful error message when the HTML Complete folder can't be written due to filename collision

Categories

(Camino Graveyard :: Downloading, defect)

All
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: alqahira, Assigned: alqahira)

Details

Attachments

(2 files)

Attached patch Fix, v1Splinter Review
I ran into this when trying to determine if we used nsWebBrowserPersist.properties. The testcase I used was the situation described in its "fileAlreadyExistsError", and I discovered we show a completely useless (generic) error message in that case. This implements a more descriptive error message along the lines of the one used by nsWebBrowserPersist.cpp itself. Forewarning: my coding brain is more than a bit rusty.
Attachment #538177 - Flags: superreview?(stuart.morgan+bugzilla)
Comment on attachment 538177 [details] [diff] [review] Fix, v1 >+ NSString* fmtString = NSLocalizedString(@"DownloadErrorHTMLCompleteFolderIsFileFmt", @""); Our style is nil for the second argument rather than @"" (the code you are basing this on is wrong/predates that decision). Otherwise r/sr=me
Attachment #538177 - Flags: superreview?(stuart.morgan+bugzilla) → superreview+
(In reply to comment #1) > Comment on attachment 538177 [details] [diff] [review] [review] > Fix, v1 > > >+ NSString* fmtString = NSLocalizedString(@"DownloadErrorHTMLCompleteFolderIsFileFmt", @""); > > Our style is nil for the second argument rather than @"" (the code you are > basing this on is wrong/predates that decision). > > Otherwise r/sr=me Bleh. Indeed, I used to know that rule before I went rusty. Here's a follow-up patch that fixes the style of those strings, so that they're consistent (and current) in that method/file.
Attachment #540279 - Flags: superreview?(stuart.morgan+bugzilla)
Comment on attachment 540279 [details] [diff] [review] Follow-up: Local style cleanup sr=smorgan
Attachment #540279 - Flags: superreview?(stuart.morgan+bugzilla) → superreview+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: