MCPcopy Create free account
hub / github.com/easydiffusion/easydiffusion / globalFailureMessage

Function globalFailureMessage

ui/plugins/ui/jasmine/jasmine-html.js:267–281  ·  view source on GitHub ↗
(failure)

Source from the content-addressed store, hash-verified

265 }
266
267 function globalFailureMessage(failure) {
268 if (failure.globalErrorType === "load") {
269 const prefix = "Error during loading: " + failure.message
270
271 if (failure.filename) {
272 return prefix + " in " + failure.filename + " line " + failure.lineno
273 } else {
274 return prefix
275 }
276 } else if (failure.globalErrorType === "afterAll") {
277 return afterAllMessagePrefix + failure.message
278 } else {
279 return failure.message
280 }
281 }
282
283 addDeprecationWarnings(doneResult)
284

Callers 1

HtmlReporterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected