| 336 | } |
| 337 | |
| 338 | exitErrorMessage () { |
| 339 | if (this.logFiles.length) { |
| 340 | return `A complete log of this run can be found in: ${this.logFiles}` |
| 341 | } |
| 342 | |
| 343 | const logsMax = this.config.get('logs-max') |
| 344 | if (logsMax <= 0) { |
| 345 | // user specified no log file |
| 346 | return `Log files were not written due to the config logs-max=${logsMax}` |
| 347 | } |
| 348 | |
| 349 | // could be an error writing to the directory |
| 350 | return `Log files were not written due to an error writing to the directory: ${this.#logsDir}` + |
| 351 | '\nYou can rerun the command with `--loglevel=verbose` to see the logs in your terminal' |
| 352 | } |
| 353 | |
| 354 | async #handleError (err) { |
| 355 | if (err) { |