more helpful "bad username" error message

Jan 17, 2007 02:06


Title
more helpful "bad username" error message

Short, concise description of the idea
Change error message to "[bad username "foo" in tag]", as suggested by ruakh here: http://community.livejournal.com/suggestions/664149.html?thread=8727125#t8727125

Full description of the ideaWhen ( Read more... )

lj-specific markup, html cleaner, § implemented

Leave a comment

Comments 25

sofiaviolet January 18 2007, 19:42:51 UTC
This would be useful to me. Generally speaking, the bad username is only one or two letters/numbers off from the intended one, and I could probably guess what was meant if I had ever seen the username before.

If that made sense. ^-^ It doesn't seem to me that this would be hard to implement.

Reply


burr86 January 18 2007, 19:48:31 UTC
Why not just [burr8612312] or something similar, instead of the error message? So it looks less out of place?

Reply

sofiaviolet January 18 2007, 19:55:36 UTC
Ooh, good idea!

Reply

(The comment has been removed)

burr86 January 18 2007, 20:06:06 UTC
We do, if it's a valid username form (less than 15 chars, only letters/numbers/hyphens), but "Bad username in LJ tag" appears when you do something like lj user="reallylongusernameover15char" or lj user="burr&86" or something, I believe.

Reply


kunzite1 January 18 2007, 19:58:06 UTC
there're several types of output:

kunzite1
kunzite1
valid

kunzite1
kunzite1
valid

lj_nonusermoo
lj_nonusermoo
valid, non-existent username

invalid, no =

invalid, no =

kunzite1'
kunzite1'
invalid, stray '

longerthanfifteen
longerthanfifteen
invalid, longer than fifteen characters

so. an idea would be to return an escaped version of the input if it finds an error. that, or, if it knows what type of LJ tag that it is, just return the "Bad username 'foo' in LJ user tag" idea.

Reply

vvalkyri January 18 2007, 20:11:24 UTC
Cool.

Reply

kate_nepveu January 18 2007, 20:16:51 UTC
Thank you, that's very useful. I agree that an escaped version of the input for the "no =" situations, and a "bad username [foo]" in the last two situations.

Reply

kunzite1 January 18 2007, 22:01:50 UTC
yay for agreement.

also, re table: i likes testing and data collectionalness.

Reply


abates January 18 2007, 20:35:17 UTC
Sounds good to me!

Reply


turlough January 18 2007, 22:00:25 UTC
Yes please!!!

Reply


Leave a comment

Up