Skip to content

Commit

Permalink
Merge pull request #3256 from yarikoptic/enh-update-msg
Browse files Browse the repository at this point in the history
Do let user know how to update openneuro client
  • Loading branch information
nellh authored Jan 15, 2025
2 parents 2324eb2 + a6f9299 commit 95e9666
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/openneuro-client/src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const checkVersions = (serverVersion, clientVersion) => {
if (!versionsWarned) {
// eslint-disable-next-line no-console
console.warn(
`${hbar}Your OpenNeuro client is out of date (v${clientVersion}). We strongly recommend you update to the latest version (v${serverVersion}) for an optimal experience.${hbar}`,
`${hbar}Your OpenNeuro client is out of date (v${clientVersion}). We strongly recommend you update (e.g. via 'npm install -g @openneuro/cli') to the latest version (v${serverVersion}) for an optimal experience.${hbar}`,
)
versionsWarned = true
}
Expand All @@ -48,7 +48,7 @@ const checkVersions = (serverVersion, clientVersion) => {
if (!versionsWarned) {
// eslint-disable-next-line no-console
console.warn(
`${hbar}Your OpenNeuro client is out of date. We strongly recommend you update to the most recent version for an optimal experience.${hbar}`,
`${hbar}Your OpenNeuro client is out of date. We strongly recommend you update (e.g. via 'npm install -g @openneuro/cli') to the most recent version for an optimal experience.${hbar}`,
)
versionsWarned = true
}
Expand Down

0 comments on commit 95e9666

Please sign in to comment.