Function
uploadFailHandler
(jqxhr, textStatus, error)
Source from the content-addressed store, hash-verified
| 29 | } |
| 30 | |
| 31 | const 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 | |
| 48 | class DateTimeTreema extends TreemaNode.nodeMap.string { |
| 49 | static initClass () { |
Callers
nothing calls this directly
Tested by
no test coverage detected