Lines Matching refs:code

1164         if (c && ("EACCES" === c.code || "EPERM" === c.code || "EBUSY" === c.code) && Date.now() - o < 6e4) return setTimeout((function () {
1166 e && "ENOENT" === e.code ? t(n, r, s) : u(c)
1231 return!e || ("ENOSYS" === e.code || !(process.getuid && 0 === process.getuid() || "EINVAL" !== e.code && "EPERM" !== e.code))
1241 if (l && "EAGAIN" === l.code && a < 10) return a++, t.call(e, n, r, u, o, i, c);
1253 if ("EAGAIN" === e.code && i < 10) {
1366 !t || "EMFILE" !== t.code && "ENFILE" !== t.code ? "function" == typeof u && u.apply(this, arguments) : en([e, [n, r, u], t, o || Date.now(), Date.now()])
1375 !n || "EMFILE" !== n.code && "ENFILE" !== n.code ? "function" == typeof o && o.apply(this, arguments) : en([e, [t, r, u, o], n, i || Date.now(), Date.now()])
1384 !r || "EMFILE" !== r.code && "ENFILE" !== r.code ? "function" == typeof o && o.apply(this, arguments) : en([e, [t, n, u, o], r, i || Date.now(), Date.now()])
1393 !u || "EMFILE" !== u.code && "ENFILE" !== u.code ? "function" == typeof o && o.apply(this, arguments) : en([e, [t, n, r, o], u, i || Date.now(), Date.now()])
1409 !o || "EMFILE" !== o.code && "ENFILE" !== o.code ? (i && i.sort && i.sort(), "function" == typeof n && n.call(this, o, i)) : en([r, [e, t, n], o, u || Date.now(), Date.now()])
1474 !i || "EMFILE" !== i.code && "ENFILE" !== i.code ? "function" == typeof u && u.apply(this, arguments) : en([e, [t, n, r, u], i, o || Date.now(), Date.now()])
1548 return e.code = "EINVAL", r(e)
1555 if ("ENOENT" === o.code) {
1572 throw e.code = "EINVAL", e
1578 if ("ENOENT" === u.code) {
1642 vn.stat(t, { bigint: !0 }, ((e, t) => e ? "ENOENT" === e.code ? n(null, {
1648 vn.stat(t, ((e, t) => e ? "ENOENT" === e.code ? n(null, { srcStat: r, destStat: null }) : n(e) : n(null, {
1669 if ("ENOENT" === e.code) return { srcStat: n, destStat: null };
1683 }, ((i, c) => i ? "ENOENT" === i.code ? o() : o(i) : c.ino && c.dev && c.ino === n.ino && c.dev === n.dev ? o(new Error(Nn(t, r, u))) : e(t, n, s, u, o))) : vn.stat(s, ((i, c) => i ? "ENOENT" === i.code ? o() : o(i) : c.ino && c.dev && c.ino === n.ino && c.dev === n.dev ? o(new Error(Nn(t, r, u))) : e(t, n, s, u, o)))
1692 if ("ENOENT" === e.code) return;
1726 if ("EINVAL" === e.code || "UNKNOWN" === e.code) return Ln.symlinkSync(u, n);
1815 Zn.readlink(t, ((t, o) => t ? u(t) : (r.dereference && (o = Xn.resolve(process.cwd(), o)), e ? void Zn.readlink(n, ((t, i) => t ? "EINVAL" === t.code || "UNKNOWN" === t.code ? Zn.symlink(o, n, u) : u(t) : (r.dereference && (i = Xn.resolve(process.cwd(), i)), nr.isSrcSubdir(o, i) ? u(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${i}'.`)) : e.isDirectory() && nr.isSrcSubdir(i, o) ? u(new Error(`Cannot overwrite '${i}' with '${o}'.`)) : function(e, t, n){
1874 if (("EBUSY" === o.code || "ENOTEMPTY" === o.code || "EPERM" === o.code) && r < t.maxBusyTries) {
1878 "ENOENT" === o.code && (o = null)
1885 hr(e), hr(t), hr("function" == typeof n), t.lstat(e, ((r, u) => r && "ENOENT" === r.code ? n(null) : r && "EPERM" === r.code && Er ? Fr(e, t, r, n) : u && u.isDirectory() ? Ar(e, t, r, n) : void t.unlink(e, (r => {
1887 if ("ENOENT" === r.code) return n(null);
1888 if ("EPERM" === r.code) return Er ? Fr(e, t, r, n) : Ar(e, t, r, n);
1889 if ("EISDIR" === r.code) return Ar(e, t, r, n)
1897 u ? r("ENOENT" === u.code ? null : n) : t.stat(e, ((u, o) => {
1898 u ? r("ENOENT" === u.code ? null : n) : o.isDirectory() ? Ar(e, t, n, r) : t.unlink(e, r)
1909 if ("ENOENT" === e.code) return;
1915 if ("ENOENT" === e.code) return;
1923 !u || "ENOTEMPTY" !== u.code && "EEXIST" !== u.code && "EPERM" !== u.code ? u && "ENOTDIR" === u.code ? r(n) : r(u) : function(e, t, n){
1945 if ("ENOENT" === n.code) return;
1946 "EPERM" === n.code && Er && gr(e, t, n)
1951 if ("ENOENT" === n.code) return;
1952 if ("EPERM" === n.code) return Er ? gr(e, t, n) : Sr(e, t, n);
1953 if ("EISDIR" !== n.code) throw n;
1963 if ("ENOTDIR" === r.code) throw n;
1964 if ("ENOTEMPTY" === r.code || "EEXIST" === r.code || "EPERM" === r.code) !function(e, t){
1977 }(e, t); else if ("ENOENT" !== r.code) throw r
2245 if ("EXDEV" !== r.code) throw r;
2264 Gu.rename(e, t, (u => u ? "EXDEV" !== u.code ? r(u) : function(e, t, n, r){
2344 if (co(`moveAndMaybeCompressFile: error renaming ${e} to ${t}`, n), "ENOENT" !== n.code) {
2501 if ("ENOENT" === n.code) return t(ho.dirname(e)), t(e);
2502 if ("EEXIST" !== n.code && "EROFS" !== n.code) throw n;
2642 if ("ENOENT" === t.code) return n(Go.dirname(e)), n(e);
2643 if ("EEXIST" !== t.code && "EROFS" !== t.code) throw t;
2783 return void Qo.throwExceptionIf(t, "MODULE_NOT_FOUND" !== n.code, `appender "${e}" could not be loaded (error was: ${n})`)
3836 throw t.code = "EINVAL", t
3879 if ("ENOENT" === e.code) return null;
3924 if ("ENOENT" === e.code) return { srcStat: o, destStat: null };
3950 }, ((i, c) => i ? "ENOENT" === i.code ? o() : o(i) : fc(n, c) ? o(new Error(Dc(t, r, u))) : e(t, n, s, u, o)))
3959 if ("ENOENT" === e.code) return;
3989 hc.readlink(t, ((t, o) => t ? u(t) : (r.dereference && (o = Ec.resolve(process.cwd(), o)), e ? void hc.readlink(n, ((e, t) => e ? "EINVAL" === e.code || "UNKNOWN" === e.code ? hc.symlink(o, n, u) : u(e) : (r.dereference && (t = Ec.resolve(process.cwd(), t)), Fc.isSrcSubdir(o, t) ? u(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${t}'.`)) : Fc.isSrcSubdir(t, o) ? u(new Error(`Cannot overwrite '${t}' with '${o}'.`)) : function(e, t, n){
4070 if ("EINVAL" === e.code || "UNKNOWN" === e.code) return Bc.symlinkSync(u, n);
4168 if (e) return "ENOENT" === e.code ? Qc.mkdirs(o, (e => {
4188 if (!e || "ENOENT" !== e.code) throw e;
4428 ul.rename(e, t, (u => u ? "EXDEV" !== u.code ? r(u) : function(e, t, n, r){
4452 if ("EXDEV" !== r.code) throw r;