airterm 1.2.3 → 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 +16 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -417,10 +417,9 @@ function Connecting({ code, connection, onError }) {
417
417
  });
418
418
  const installed = isGloballyInstalled();
419
419
  if (installed) {
420
- console.log("\x1B[32mInstalled.\x1B[0m");
420
+ console.log("\x1B[32mGreat, airterm is now installed.\x1B[0m");
421
421
  console.log(
422
- `
423
- Next time, just type \x1B[1m\x1B[36mairterm\x1B[0m.
422
+ `Next time, just type \x1B[1m\x1B[36mairterm\x1B[0m.
424
423
  `
425
424
  );
426
425
  } else {
@@ -440,6 +439,13 @@ Next time, just type \x1B[1m\x1B[36mairterm\x1B[0m.
440
439
  }
441
440
  }
442
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
+ }
443
449
  process.exit(exitCode);
444
450
  }
445
451
  run().catch((err) => {
@@ -620,6 +626,13 @@ if (first === "--list" || first === "-l") {
620
626
  }
621
627
  const conn = connections[0];
622
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
+ }
623
636
  process.exit(exitCode);
624
637
  }
625
638
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "airterm",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
4
4
  "description": "SSH into your AirClaw machine",
5
5
  "type": "module",
6
6
  "bin": {