MCPcopy Index your code
hub / github.com/scality/cloudserver / ignoreNoSuchEntity

Function ignoreNoSuchEntity

tests/functional/scripts/ensureServiceUser.js:52–61  ·  view source on GitHub ↗
(promise)

Source from the content-addressed store, hash-verified

50}
51
52async function ignoreNoSuchEntity(promise) {
53 try {
54 return await promise;
55 } catch (err) {
56 if (err instanceof NoSuchEntityException) {
57 return null;
58 }
59 throw err;
60 }
61}
62
63// the cleanup runs whatever state the test left behind, so every
64// deletion has to tolerate resources that were never created

Callers 1

deleteServiceUserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected