From c4b16101a5c7eecc8039387b9358efb02b17904a Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Wed, 27 Apr 2022 01:55:52 +0200 Subject: [PATCH] fs: fix mkdirSync so ENOSPC is correctly reported MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: https://github.com/nodejs/node/issues/42808 PR-URL: https://github.com/nodejs/node/pull/42811 Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Darshan Sen Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen --- src/node_file.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node_file.cc b/src/node_file.cc index 43a57d77517e24..982e384655e35b 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -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;