提交 db7ddfd9 编写于 作者: S Sandeep Somavarapu

Error code for rename

上级 51512bc5
......@@ -49,6 +49,7 @@ const INSTALL_ERROR_VALIDATING = 'validating';
const INSTALL_ERROR_GALLERY = 'gallery';
const INSTALL_ERROR_LOCAL = 'local';
const INSTALL_ERROR_EXTRACTING = 'extracting';
const INSTALL_ERROR_RENAMING = 'renaming';
const INSTALL_ERROR_DELETING = 'deleting';
const ERROR_UNKNOWN = 'unknown';
......@@ -452,7 +453,7 @@ export class ExtensionManagementService extends Disposable implements IExtension
.then(null, error =>
isWindows && error && error.code === 'EPERM' && Date.now() < retryUntil
? this.rename(id, extractPath, renamePath, retryUntil)
: TPromise.wrapError(error)
: TPromise.wrapError(new ExtensionManagementError(error.message || nls.localize('renameError', "Unknown error while"), error.code || INSTALL_ERROR_RENAMING))
);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册