airterm 1.2.4 → 1.2.5

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.
Files changed (2) hide show
  1. package/dist/cli.js +14 -0
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -439,6 +439,13 @@ 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 If this machine was recreated, run:"
445
+ );
446
+ console.log(` \x1B[1mairterm --reset\x1B[0m`);
447
+ console.log("Then request a new access code from your AirClaw.\n");
448
+ }
442
449
  process.exit(exitCode);
443
450
  }
444
451
  run().catch((err) => {
@@ -619,6 +626,13 @@ if (first === "--list" || first === "-l") {
619
626
  }
620
627
  const conn = connections[0];
621
628
  const exitCode = connectSSH(conn, remoteCmd);
629
+ if (exitCode !== 0) {
630
+ console.error(
631
+ "\n\x1B[33mConnection failed.\x1B[0m If this machine was recreated, run:"
632
+ );
633
+ console.error(` \x1B[1mairterm --reset\x1B[0m`);
634
+ console.error("Then request a new access code from your AirClaw.\n");
635
+ }
622
636
  process.exit(exitCode);
623
637
  }
624
638
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "airterm",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "SSH into your AirClaw machine",
5
5
  "type": "module",
6
6
  "bin": {