Show a warning instead of quitting silently if xpi download attempts reach 50

This commit is contained in:
Ryan Freebern 2011-06-26 06:58:02 -04:00
Родитель e18c5aa81c
Коммит c83238e678
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -290,6 +290,11 @@ var FlightDeck = new Class({
'Wrong response from Add-on Builder Helper. Please <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=573778">let us know</a>'
);
}
} else if (test_request.request_number > 50) {
this.warning.alert(
'Add-on Builder',
'The add-on was not successfully built (attempts timed out). Please try again.'
);
}
}.bind(this)
}).send(this);