MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / setMessage

Function setMessage

src/fileSystem/internalFs.js:336–345  ·  view source on GitHub ↗
(reject)

Source from the content-addressed store, hash-verified

334};
335
336function setMessage(reject) {
337 return function (err) {
338 if (err.code) {
339 const message = getErrorMessage(err.code);
340 err.message = message;
341 return reject(err);
342 }
343 reject(err);
344 };
345}
346
347/**
348 * Get error message for file error code

Callers 10

listDirFunction · 0.70
writeFileFunction · 0.70
deleteFunction · 0.70
readFileFunction · 0.70
renameFileFunction · 0.70
createDirFunction · 0.70
moveOrCopyFunction · 0.70
statsFunction · 0.70
verifyFunction · 0.70
existsFunction · 0.70

Calls 1

getErrorMessageFunction · 0.85

Tested by

no test coverage detected