Permalink
Browse files

back to pre a772196 alerting in scriptdownloader

  • Loading branch information...
supahgreg committed Sep 5, 2011
1 parent 33f9dd6 commit 80497486b80d2389c89528e1833b4ae1b09b1009
Showing with 2 additions and 3 deletions.
  1. +2 −3 extension/modules/script/scriptdownloader.js
@@ -71,7 +71,6 @@ ScriptDownloader.prototype.handleErr = function(aEvent, aMsg) {
} else if (aMsg) {
errMsg += "\n" + aMsg;
}
- Scriptish_alert(errMsg);
Scriptish_log(errMsg);
if (this.scriptInstaller) {
this.scriptInstaller.changed("DownloadFailed");
@@ -93,7 +92,8 @@ ScriptDownloader.prototype.handleScriptDownloadComplete = function() {
try {
// If loading from file, status might be zero on success
if (req.status != 200 && req.status != 0) {
- this.handleErr(null, req.status + ": " + req.statusText);
+ Scriptish_alert(Scriptish_stringBundle("error.script.loading") + ":\n"
+ + req.status + ": " + req.statusText);
return;
}
@@ -337,7 +337,6 @@ ScriptDownloader.prototype.errorInstallDependency = function(dep, msg) {
+ ": " + dep.urlToDownload + "\n" + msg;
Scriptish_log(this.dependencyError);
if (this.scriptInstaller) {
- Scriptish_alert(this.dependencyError);
return this.scriptInstaller.changed("DownloadFailed");
}
if (this.installOnCompletion_) {

0 comments on commit 8049748

Please sign in to comment.