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)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: alqahira, Assigned: alqahira)
Details
Attachments
(2 files)
|
3.59 KB,
patch
|
stuart.morgan+bugzilla
:
superreview+
|
Details | Diff | Splinter Review |
|
2.59 KB,
patch
|
stuart.morgan+bugzilla
:
superreview+
|
Details | Diff | Splinter 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 1•14 years ago
|
||
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+
| Assignee | ||
Comment 2•14 years ago
|
||
(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 3•14 years ago
|
||
Comment on attachment 540279 [details] [diff] [review]
Follow-up: Local style cleanup
sr=smorgan
Attachment #540279 -
Flags: superreview?(stuart.morgan+bugzilla) → superreview+
| Assignee | ||
Comment 4•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•