Add error message for when ZIP fails

This commit is contained in:
mkaply%us.ibm.com 2006-01-18 18:40:29 +00:00
Родитель 3f40a245b7
Коммит 85ceb332b1
2 изменённых файлов: 9 добавлений и 2 удалений

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

@ -2,4 +2,4 @@ windowTitle=Firefox CCK
deleteConfirm=Are you sure you want to delete this configuration?
outputLocation=Firefox CCK Wizard is completed. XPI is available at:\n
cancelConfirm=Do you want to save your changes?
zipError=Unable to create JAR or XPI file. Please ensure that a command line version of ZIP is in your path or that you have specified a path to ZIP.

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

@ -859,7 +859,14 @@ function CCKZip(zipfile, location)
var args = [file.path];
process.run(true, args, args.length);
// file.remove(false);
file.remove(false);
var file = location.clone();
file.append(zipfile);
if (!file.exists()) {
var bundle = document.getElementById("bundle_cckwizard");
gPromptService.alert(window, bundle.getString("windowTitle"),
bundle.getString("zipError"));
}
}
function CCKWriteXULOverlay(destdir)