MCPcopy Create free account
hub / github.com/appium/appium / fail

Method fail

packages/docutils/lib/validate.ts:187–192  ·  view source on GitHub ↗

* If a thing like `err` has not already been emitted, emit * code DocutilsValidator.FAILURE. * @param err A validation error * @returns

(err: DocutilsError | string)

Source from the content-addressed store, hash-verified

185 * @returns
186 */
187 protected fail(err: DocutilsError | string) {
188 const dErr = typeof err === 'string' ? new DocutilsError(err) : err;
189 if (!this.emittedErrors.has(dErr.message)) {
190 this.emit(DocutilsValidator.FAILURE, dErr);
191 }
192 }
193
194 /**
195 * Emits a {@linkcode DocutilsValidator.SUCCESS} event

Callers 9

validateMkDocsMethod · 0.95
validateMkDocsConfigMethod · 0.95
validatePythonDepsMethod · 0.95
validatePythonVersionMethod · 0.95
findElementTestsFunction · 0.80
storage.spec.tsFile · 0.80
mainFunction · 0.80
walker.spec.tsFile · 0.80

Calls 1

emitMethod · 0.80

Tested by 1

findElementTestsFunction · 0.64