Closed Bug 883208 Opened 13 years ago Closed 13 years ago

Give better error warning on duplicate titles

Categories

(Webmaker Graveyard :: Thimble, defect)

defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: brett, Assigned: thecount)

References

Details

Attachments

(2 files)

Attached image generic warning
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."
Didn't we already fix this in #881595?
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?
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.
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.
So I just talked to Jon, Looks like this is something production just does, and hides all errors.
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-
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)
Attachment #762763 - Flags: review?(pomax) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
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.

Attachment

General

Created:
Updated:
Size: