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:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user