Closed GoogleCodeExporter closed 9 years ago
A Screenshot of the problem.
Original comment by scout9...@gmail.com
on 25 Feb 2009 at 2:54
Attachments:
There are some errors in your customized AH quick search content (when you edit
it).
A quick way to reset your AH quick search content is:
+ Type about:config in the address, press Enter
+ In the filter, type quickSearch
+ You should see
"greasemonkey.scriptvals.terrasoft.gr/FallenSwordHelper.quickSearchList", right
click
on it and choose Reset
I know the problem and should be fixing it soon.
Developers: the content from the text box is not check for error, the
System.JSON_getValue is not wrapped in a try catch block.
Original comment by ipodsee...@gmail.com
on 25 Feb 2009 at 3:47
Wrapping stuff in try catch blocks is a bad idea. Only do that when you know
exactly
how to handle the exception.
Original comment by GSchizas
on 25 Feb 2009 at 8:37
what I mean of the try catch block is to use in the saveAHQuickSearchList
function
(not sure of the name), not in the System function.
try JSON.parse(user_input) catch (ex) {alert(error in input); return;}
continue normally here
so that user_input is tested before saving to JSON/GMvalue.
Original comment by ipodsee...@gmail.com
on 26 Feb 2009 at 6:59
A better idea would be to never allow the user to add JSON objects. This screen
should be more user friendly. Since quick search has already been changed, I'm
closing this issue as fixed (in r626)
Original comment by GSchizas
on 28 Feb 2009 at 8:39
Original comment by GSchizas
on 28 Feb 2009 at 8:39
Original issue reported on code.google.com by
scout9...@gmail.com
on 25 Feb 2009 at 2:45