From 2ad66441563c91bc529533e5fb0a722127bf2510 Mon Sep 17 00:00:00 2001 From: Julien Ripouteau Date: Thu, 25 Jan 2024 10:45:49 +0100 Subject: [PATCH] refactor: more descriptive error --- src/patchers/upgrade_packages/index.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/patchers/upgrade_packages/index.ts b/src/patchers/upgrade_packages/index.ts index b3b90fe..03d54d7 100644 --- a/src/patchers/upgrade_packages/index.ts +++ b/src/patchers/upgrade_packages/index.ts @@ -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