* @private * @method logError * @param error * @return {number}
(error)
| 256 | * @return {number} |
| 257 | */ |
| 258 | logError(error) { |
| 259 | if (this.testing && error) { |
| 260 | console.error(error.message); |
| 261 | if (error.stack) { |
| 262 | console.error(error.stack); |
| 263 | } |
| 264 | throw error; |
| 265 | } |
| 266 | this.ui.errorLog.push(error); |
| 267 | this.ui.writeError(error); |
| 268 | return 1; |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | module.exports = CLI; |
no outgoing calls
no test coverage detected