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

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

adudeabides January 18 2007, 23:55:00 UTC
Your table doen't include kunzite1 (without any quote marks).

Also, now that I think about it, it bugs me that the tag isn't closed properly (that is, kunzite1).

Anyway, yes to the suggestion. :x

Reply

kunzite1 January 19 2007, 00:05:06 UTC
the version you reference does work, but it's not necessarily important to my example. :P

however, i'm also happy that it supports the xhtml-close. tis neat.

whee.

Reply

adudeabides January 19 2007, 00:12:35 UTC
Apparantly completeness isn't important to you!! >:O

;p

Reply

kunzite1 January 19 2007, 00:21:56 UTC
in this case, no. :P

Reply

jai_dit January 19 2007, 10:59:55 UTC
And I forget what error

Reply


Leave a comment

Up