✏️ 正在编辑: errors.js
路径:
/opt/alt/alt-nodejs16/root/usr/lib/node_modules/npm/node_modules.bundled/@npmcli/git/lib/errors.js
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
const maxRetry = 3 class GitError extends Error { shouldRetry () { return false } } class GitConnectionError extends GitError { constructor (message) { super('A git connection error occurred') } shouldRetry (number) { return number < maxRetry } } class GitPathspecError extends GitError { constructor (message) { super('The git reference could not be found') } } class GitUnknownError extends GitError { constructor (message) { super('An unknown git error occurred') } } module.exports = { GitConnectionError, GitPathspecError, GitUnknownError, }
💾 保存文件
← 返回文件管理器