MCPcopy Create free account
hub / github.com/codecombat/codecombat / uploadFailHandler

Function uploadFailHandler

app/core/treema-ext.js:31–46  ·  view source on GitHub ↗
(jqxhr, textStatus, error)

Source from the content-addressed store, hash-verified

29}
30
31const uploadFailHandler = function (jqxhr, textStatus, error) {
32 try {
33 const err = JSON.parse(jqxhr.responseText)
34 if (err.message) {
35 window.noty({
36 type: 'error',
37 text: err.message,
38 })
39 }
40 } catch (e) {
41 window.noty({
42 type: 'error',
43 text: textStatus + ' - ' + error,
44 })
45 }
46}
47
48class DateTimeTreema extends TreemaNode.nodeMap.string {
49 static initClass () {

Callers

nothing calls this directly

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected