1
0
forked from mirrors/0ad

Fixes error logging in the JS debugger, based on patch by RefinedCode. Fixes #2175

This was SVN commit r13967.
This commit is contained in:
historic_bruno
2013-10-07 02:10:41 +00:00
parent d3e0fb4f84
commit b9268fbdcd
+6 -6
View File
@@ -201,8 +201,8 @@ function getCurrentGlobalObject (threadId)
},
error: function(jqXHR, textStatus, errorThrown)
{
DEBUG(textStatus);
DEBUG('error');
debug('ERROR : getCurrentGlobalObject: ' + errorThrown);
alert('getCurrentGlobalObject failed:\n' + errorThrown);
}
});
}
@@ -219,8 +219,8 @@ function getStackFrame (threadId, nestingLevel)
},
error: function(jqXHR, textStatus, errorThrown)
{
DEBUG(textStatus);
DEBUG('error');
debug('ERROR : getStackFrame: ' + errorThrown);
alert('getStackFrame failed:\n' + errorThrown);
}
});
}
@@ -237,8 +237,8 @@ function getStackFrameThis (threadId, nestingLevel)
},
error: function(jqXHR, textStatus, errorThrown)
{
DEBUG(textStatus);
DEBUG('error');
debug('ERROR : getStackFrameThis: ' + errorThrown);
alert('getStackFrameThis failed:\n' + errorThrown);
}
});
}