We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2828919 commit 6956e4bCopy full SHA for 6956e4b
src/node_file.cc
@@ -3381,11 +3381,9 @@ static void CpSyncOverrideFile(const FunctionCallbackInfo<Value>& args) {
3381
3382
std::filesystem::remove(*dest, error);
3383
if (error) {
3384
- auto dest_path = BufferValueToPath(dest);
3385
- auto dest_path_str = PathToString(dest_path);
3386
std::string message = "operation not permitted, unlink";
3387
return env->ThrowErrnoException(
3388
- EPERM, "unlink", message.c_str(), dest_path.c_str());
+ EPERM, "unlink", message.c_str(), dest.out());
3389
}
3390
3391
if (mode == 0) {
0 commit comments