mudlet-makers team mailing list archive
-
mudlet-makers team
-
Mailing list archive
-
Message #03525
[Bug 1193211] Re: JSON decoder errors aren't properly logged
in Mudlet/development
** Changed in: mudlet
Milestone: None => 3.0
** Changed in: mudlet
Assignee: (unassigned) => Chris (chrismudlet)
--
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
https://bugs.launchpad.net/bugs/1193211
Title:
JSON decoder errors aren't properly logged
Status in Mudlet the MUD client:
Fix Committed
Bug description:
I saw this in the errors view:
[ERROR:] object:<JSON decoder error:> function:<json_to_value>
<>
With no JSON error attached. Looking at the code:
string e;
if( lua_isstring( L, 1 ) )
{
e = "Lua error:";
e += lua_tostring( L, 1 );
}
QString _n = "JSON decoder error:";
QString _f = "json_to_value";
logError( e, _n, _f );
It should be using -1 as the index for the top of the stack, because 1
might not be the top (which seems to be the case in my error).
To manage notifications about this bug go to:
https://bugs.launchpad.net/mudlet/+bug/1193211/+subscriptions
References