From 48bbb73f36f30b5db2e60f9dfde8497cb3c74452 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 105ed4c4150608..f4238e7d68cce0 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;