提交 8ba08064 编写于 作者: S Sandeep Somavarapu

Extensions: error handling

上级 c55e3a5b
......@@ -301,7 +301,7 @@ export class ExtensionManagementService implements IExtensionManagementService {
if (local) {
this._onDidInstallExtension.fire({ identifier, gallery, local });
} else {
const errorCode = error && error instanceof InstallationError ? error.code : INSTALL_ERROR_UNKNOWN;
const errorCode = error && (<InstallationError>error).code ? (<InstallationError>error).code : INSTALL_ERROR_UNKNOWN;
this._onDidInstallExtension.fire({ identifier, gallery, error: errorCode });
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册