airterm 1.2.4 → 1.2.6
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/cli.js +10 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -439,6 +439,11 @@ function Connecting({ code, connection, onError }) {
|
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
const exitCode = connectSSH(conn);
|
|
442
|
+
if (exitCode !== 0) {
|
|
443
|
+
console.log(
|
|
444
|
+
"\n\x1B[33mConnection failed.\x1B[0m Run \x1B[1mairterm --reset\x1B[0m and request a new access code.\n"
|
|
445
|
+
);
|
|
446
|
+
}
|
|
442
447
|
process.exit(exitCode);
|
|
443
448
|
}
|
|
444
449
|
run().catch((err) => {
|
|
@@ -619,6 +624,11 @@ if (first === "--list" || first === "-l") {
|
|
|
619
624
|
}
|
|
620
625
|
const conn = connections[0];
|
|
621
626
|
const exitCode = connectSSH(conn, remoteCmd);
|
|
627
|
+
if (exitCode !== 0) {
|
|
628
|
+
console.error(
|
|
629
|
+
"\n\x1B[33mConnection failed.\x1B[0m Run \x1B[1mairterm --reset\x1B[0m and request a new access code.\n"
|
|
630
|
+
);
|
|
631
|
+
}
|
|
622
632
|
process.exit(exitCode);
|
|
623
633
|
}
|
|
624
634
|
} else {
|