Skip to content

Commit

Permalink
refactor: more descriptive error
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Jan 25, 2024
1 parent 73d888e commit 2ad6644
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/patchers/upgrade_packages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,12 @@ export class UpgradePackages extends BasePatcher {
const notAvailablePackages = this.#detectNotAvailablePackages()

if (notAvailablePackages.length > 0) {
this.logger.warning(
`The following packages are not available for AdonisJS v6: ${notAvailablePackages
this.logger.error(
`The following packages are not available yet for AdonisJS v6: \n - ${notAvailablePackages
.map((pkg) => pkg.name)
.join(', ')}`
.join(
'\n - '
)}\nPlease wait a few weeks for the packages to be updated.\nSee : https://v6-migration.adonisjs.com/guides/introduction#official-packages-not-yet-compatible-with-v6`
)

return
Expand Down

0 comments on commit 2ad6644

Please sign in to comment.