MCPcopy
hub / github.com/parse-community/parse-server / fail

Function fail

src/StatusHandler.js:318–327  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

316 };
317
318 const fail = function (err) {
319 if (typeof err === 'string') {
320 err = { message: err };
321 }
322 const update = {
323 errorMessage: err,
324 status: 'failed',
325 };
326 return handler.update({ objectId }, update);
327 };
328
329 const rval = {
330 setInitial,

Calls 1

updateMethod · 0.80

Tested by 8

testFunction · 0.68
errorHandlerFunction · 0.68
createFunction · 0.68
updateFunction · 0.68
handleErrorFunction · 0.68
expectMasterKeyRequiredFunction · 0.68
expectMissingFileFunction · 0.68
testLoadRolesFunction · 0.68