MCPcopy Create free account
hub / github.com/ampproject/amphtml / failOnError

Function failOnError

validator/js/gulpjs/index.js:132–138  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

130 }
131
132 function failOnError(callback) {
133 if (failedFiles > 0) {
134 this.emit('error', new PluginError(PLUGIN_NAME,
135 '\nAMPHTML Validation failed for ' + failedFiles + ' files.'));
136 }
137 callback();
138 }
139
140 return through.obj(collectFailedFiles, failOnError);
141}

Callers

nothing calls this directly

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected