* Throw missing module error block. * @param {object} options generation options * @param {string=} options.request request string used originally * @returns {string} generated error block
({ request })
| 544 | * @returns {string} generated error block |
| 545 | */ |
| 546 | throwMissingModuleErrorBlock({ request }) { |
| 547 | const err = `Cannot find module '${request}'`; |
| 548 | return `${this.renderConst()} e = new Error(${JSON.stringify( |
| 549 | err |
| 550 | )}); e.code = 'MODULE_NOT_FOUND'; throw e;`; |
| 551 | } |
| 552 | |
| 553 | /** |
| 554 | * Throw missing module error function. |
no test coverage detected