UNPKG

publish-please

Version:

Safe and highly functional replacement for `npm publish`.

14 lines (13 loc) 397 B
'use strict'; const reporter = require('../reporters/current'); /** * Show validation errors. * @module utils/show-validation-errors * @param {Error} err - Error object */ module.exports = function showValidationErrors(err) { reporter.current().reportAsIs(''); reporter.current().reportError('ERRORS'); reporter.current().reportAsIs(err.message); reporter.current().reportAsIs(''); };