Skip to content

Commit

Permalink
improved error message (#177)
Browse files Browse the repository at this point in the history
* fix: improved error message

ipfs/js-ipfs#1411

* fix: clarifies repo version mismatch error

* fix: linter error
  • Loading branch information
steefmin authored and jacobheun committed Oct 4, 2018
1 parent e504dfa commit c17d8b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module.exports = (store) => {
const compatibleVersion = (version === 6 && expected === 7) || (expected === 6 && version === 7)

if (version !== expected && !compatibleVersion) {
return callback(new Error(`version mismatch: expected v${expected}, found v${version}`))
return callback(new Error(`ipfs repo needs migration: expected version v${expected}, found version v${version}`))
}
callback()
})
Expand Down

0 comments on commit c17d8b4

Please sign in to comment.