From d9157248313b590f40e7822c0b52f6903fa9cab4 Mon Sep 17 00:00:00 2001 From: hirzidevs Date: Wed, 11 Sep 2024 22:11:38 +0700 Subject: [PATCH] feat(installer): update error message --- handlers/installer.js | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/handlers/installer.js b/handlers/installer.js index 24576cc..eac0aa4 100644 --- a/handlers/installer.js +++ b/handlers/installer.js @@ -38,13 +38,13 @@ module.exports = function Installer() { let isValid = true; if (index === 1 && !isValidURL(answer)) { - console.log(cliColor.redBright("Invalid URL. Please enter a valid URL.")); + console.log(cliColor.redBright('❌ Invalid Panel URL. Please enter a valid URL. Example Correct URL: "https://panel.example.com"')); isValid = false; } else if (index === 2 && !/^(plcn_|ptlc_|peli_|ptla_)/.test(answer)) { - console.log(cliColor.redBright("Invalid API key. It must start with 'plcn_' or 'ptlc_'.")); + console.log(cliColor.redBright("❌ Invalid Panel API key. It must start with 'plcn_' or 'ptlc_'.")); isValid = false; } else if (index === 4 && !/^\d+$/.test(answer)) { - console.log(cliColor.redBright("Invalid Channel ID. It must be a number.")); + console.log(cliColor.redBright("❌ Invalid Channel ID. It must be a number.")); isValid = false; } diff --git a/package.json b/package.json index 158b0a8..3591ccb 100644 --- a/package.json +++ b/package.json @@ -23,4 +23,4 @@ "engines": { "node": ">=18" } -} +} \ No newline at end of file