fs: fix mkdirSync so ENOSPC is correctly reported

Fixes: https://github.com/nodejs/node/issues/42808

PR-URL: https://github.com/nodejs/node/pull/42811
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
Santiago Gimeno
2022-04-27 01:55:52 +02:00
committed by GitHub
parent 92f8c03ce6
commit e91034c2eb

View File

@@ -1382,6 +1382,7 @@ int MKDirpSync(uv_loop_t* loop,
}
break;
case UV_EACCES:
case UV_ENOSPC:
case UV_ENOTDIR:
case UV_EPERM: {
return err;