Write more verbose errors to debug window

pull/73/head
jonsowman 2011-01-10 17:57:59 +00:00
rodzic 841afa60fa
commit 1bd8d99ba3
1 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -589,9 +589,13 @@ function setupEventHandlers() {
dataType: 'json',
success: function(data) {
if ( data.valid == "false" ) {
appendDebug("The server rejected the submitted form data");
throwError("The server rejected the submitted form data: \n" +
data.error);
// If something went wrong, write the error messages to
// the debug window
appendDebug("The server rejected the submitted form data:");
appendDebug(data.error);
// And throw an error window to alert the user of what happened
throwError("The server rejected the submitted form data: \n"
+ data.error);
resetGUI();
} else if ( data.valid == "true" ) {
predSub();