MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / end

Method end

packages/cli/lib/base-generator.js:470–481  ·  view source on GitHub ↗

* Print out the exit reason if this generator is told to exit before it ends

()

Source from the content-addressed store, hash-verified

468 * Print out the exit reason if this generator is told to exit before it ends
469 */
470 async end() {
471 if (this.shouldExit()) {
472 debug(this.exitGeneration);
473 this.log(
474 chalk.red(g.f('Generation is aborted: %s', this.exitGeneration)),
475 );
476 // Fail the process
477 process.exitCode = 1;
478 return;
479 }
480 await this._runLintFix();
481 }
482
483 // Check all files being generated to ensure they succeeded
484 _isGenerationSuccessful() {

Callers

nothing calls this directly

Calls 3

shouldExitMethod · 0.95
_runLintFixMethod · 0.95
logMethod · 0.65

Tested by

no test coverage detected