Skip to content

Commit

Permalink
fix: updates error message to be a bit more descriptive and helpful.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Bottigliero committed Jun 8, 2019
1 parent 630dfc0 commit 8d37968
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ module.exports.getConfiguration = function () {
*/
if (typeof config !== 'object') {
throw Error(
'[standard-version] Invalid default export found in configuration file.\n' +
'You must provide an object or function.'
`[standard-version] Invalid configuration in ${configPath} provided. Expected an object but found ${typeof config}.`
)
}

Expand Down

0 comments on commit 8d37968

Please sign in to comment.