ardent-cli 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1037,19 +1037,27 @@ async function listAction2() {
|
|
|
1037
1037
|
const dim2 = "\x1B[2m";
|
|
1038
1038
|
const yellow = "\x1B[33m";
|
|
1039
1039
|
const reset2 = "\x1B[0m";
|
|
1040
|
+
const red = "\x1B[31m";
|
|
1040
1041
|
console.log("Connectors:\n");
|
|
1041
1042
|
for (const connector of connectors) {
|
|
1042
1043
|
const isCurrent = connector.id === currentConnectorId;
|
|
1043
1044
|
const icon = connector.status === "healthy" ? "\u25CF" : "\u25CB";
|
|
1044
1045
|
const warnings = connector.warnings ?? [];
|
|
1045
1046
|
const warningSuffix = warnings.length > 0 ? ` ${yellow}\u26A0 ${warnings.length}${reset2}` : "";
|
|
1047
|
+
const statusSuffix = connector.status === "healthy" ? "" : ` ${red}[${connector.status}]${reset2}`;
|
|
1046
1048
|
if (isCurrent) {
|
|
1047
|
-
console.log(`${green2}* ${icon} ${connector.name}${reset2}${warningSuffix}`);
|
|
1049
|
+
console.log(`${green2}* ${icon} ${connector.name}${reset2}${warningSuffix}${statusSuffix}`);
|
|
1048
1050
|
console.log(`${green2} ${connector.service_name}${reset2}`);
|
|
1049
1051
|
} else {
|
|
1050
|
-
console.log(` ${icon} ${connector.name}${warningSuffix}`);
|
|
1052
|
+
console.log(` ${icon} ${connector.name}${warningSuffix}${statusSuffix}`);
|
|
1051
1053
|
console.log(`${dim2} ${connector.service_name}${reset2}`);
|
|
1052
1054
|
}
|
|
1055
|
+
if (connector.status !== "healthy" && connector.connection_error) {
|
|
1056
|
+
for (const line of connector.connection_error.split("\n")) {
|
|
1057
|
+
if (line.trim().length === 0) continue;
|
|
1058
|
+
console.log(`${red} ${line}${reset2}`);
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1053
1061
|
for (const warning of warnings) {
|
|
1054
1062
|
console.log(`${yellow} \u26A0 ${warning}${reset2}`);
|
|
1055
1063
|
}
|