Closed
Bug 883208
Opened 13 years ago
Closed 13 years ago
Give better error warning on duplicate titles
Categories
(Webmaker Graveyard :: Thimble, defect)
Webmaker Graveyard
Thimble
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: brett, Assigned: thecount)
References
Details
Attachments
(2 files)
Currently we give a generic warning. This is no good.
Attached a screen shot.
Replace with "You already have a title with that name. Please choose a new title using the <title> tag."
| Reporter | ||
Comment 2•13 years ago
|
||
Perhaps, but can confirm on production that if you try and make two things with same title you get generic error message vs what i see in #881595
Did that ticket land after latest build?
| Assignee | ||
Comment 3•13 years ago
|
||
Brett, that is a different error not caused by duplicate titles.
Not yet sure what causes it, but I think it is login issues. Might be related to bug 883155
We suspect it'll be gone once things get updated.
I have not been able to reproduce it, and next time it happens see if it happens again without changing the name.
The current error for duplicate titles is:
Sorry, an error occurred while trying to publish. You already have a page titled "your-awesome-webpage-created-on-fri-14-jun-2013-165953-gmt" (you will have to change the text in the <title> element on your page)
I like your error better.
| Assignee | ||
Comment 4•13 years ago
|
||
Never mind most of that last comment, it DOES throw that error.
It should not. This is a bug. Even the old message was not that.
| Assignee | ||
Comment 5•13 years ago
|
||
So I just talked to Jon, Looks like this is something production just does, and hides all errors.
| Assignee | ||
Comment 6•13 years ago
|
||
This fixes it.
To test run thimble like so:
NODE_ENV=production node app
Attachment #762763 -
Flags: review?(pomax)
Comment on attachment 762763 [details] [review]
https://github.com/mozilla/thimble.webmaker.org/pull/125
this seems to just turn any error into a "500" error, which is going to make it really hard to figure out what's going wrong for us without server debugging. Popcorn has the nice error reporter, thimble doesn't, so is a "500" catch-all a sensible thing to do?
Attachment #762763 -
Flags: review?(pomax) → review-
| Assignee | ||
Comment 8•13 years ago
|
||
Pomax could we consider landing this as is and fixing it next week?
More people are going to hit duplicate page title names than report bugs because of internal server errors.
I'm game for fixing it, but anywhere we can create slack is good for everyone else.
Flags: needinfo?(pomax)
sold. file a followup ticket, link to it, and I'll give it an r+, in that order.
Flags: needinfo?(pomax)
| Assignee | ||
Comment 10•13 years ago
|
||
Comment on attachment 762763 [details] [review]
https://github.com/mozilla/thimble.webmaker.org/pull/125
bug 883379
Attachment #762763 -
Flags: review- → review?(pomax)
Comment 11•13 years ago
|
||
Comment on attachment 762763 [details] [review]
https://github.com/mozilla/thimble.webmaker.org/pull/125
make it happen.
Attachment #762763 -
Flags: review?(pomax) → review+
| Assignee | ||
Comment 12•13 years ago
|
||
Staged: https://github.com/mozilla/thimble.webmaker.org/commit/e8849a35c17cb481805e7371621f5e64168b908f
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Attachment mime type: text/plain → text/x-github-pull-request
You need to log in
before you can comment on or make changes to this bug.
Description
•