Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Fix the bug where errors during installation of a local .zip file wer… (
Browse files Browse the repository at this point in the history
#12702)

* Fix the bug where errors during installation of a local .zip file were always shown as "Unknown internal error"

* Show all error messages we have, not just one

* Add new String for error MISSING_PACKAGE_JSON
  • Loading branch information
Marcel Gerber authored and petetnt committed Aug 22, 2016
1 parent 9f0825d commit 4be34b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensibility/ExtensionManagerDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ define(function (require, exports, module) {
// new install or an update.
Package.validate(path, { requirePackageJSON: true }).done(function (info) {
if (info.errors.length) {
result.reject(Package.formatError(info.errors));
result.reject(info.errors.map(Package.formatError).join(" "));
return;
}

Expand Down
1 change: 1 addition & 0 deletions src/nls/root/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ define({
"VIEW_TRUNCATED_DESCRIPTION" : "View truncated description",
// These must match the error codes in ExtensionsDomain.Errors.* :
"INVALID_ZIP_FILE" : "The downloaded content is not a valid zip file.",
"MISSING_PACKAGE_JSON" : "The package has no package.json file.",
"INVALID_PACKAGE_JSON" : "The package.json file is not valid (error was: {0}).",
"MISSING_PACKAGE_NAME" : "The package.json file doesn't specify a package name.",
"BAD_PACKAGE_NAME" : "{0} is an invalid package name.",
Expand Down

0 comments on commit 4be34b6

Please sign in to comment.