MCPcopy
hub / github.com/thinkjs/thinkjs / notifier

Method notifier

lib/application.js:36–46  ·  view source on GitHub ↗

* notify error

(err)

Source from the content-addressed store, hash-verified

34 * notify error
35 */
36 notifier(err) {
37 if (!this.options.notifier) return;
38 let notifier = this.options.notifier;
39 if (!helper.isArray(notifier)) {
40 notifier = [notifier];
41 }
42 notifier[0](Object.assign({
43 title: 'ThinkJS Transpile Error',
44 message: err.message
45 }, notifier[1]));
46 }
47 /**
48 * watcher callback
49 */

Callers 2

_watcherCallBackMethod · 0.95
application.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected