@coana-tech/cli 14.2.3 → 14.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/cli.js +11 -3
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -99345,7 +99345,15 @@ var init_other_modules_communicator = __esm({
99345
99345
  import_ecosystem_support2 = __toESM(require_ecosystem_support());
99346
99346
  import_logger_singleton7 = __toESM(require_logger_singleton());
99347
99347
  init_constants3();
99348
- pullDockerImage = (0, import_lodash7.memoize)(async (image) => execPipeAndLogOnFailure(["docker", "pull", image]));
99348
+ pullDockerImage = (0, import_lodash7.memoize)(async (image) => {
99349
+ const { error, stderr } = await execNeverFail(["docker", "pull", image]);
99350
+ if (error) {
99351
+ if (stderr?.includes("Cannot connect"))
99352
+ throw new Error(`Failed to pull docker image ${image}. Is docker installed and running on your system?`);
99353
+ else throw error;
99354
+ }
99355
+ return true;
99356
+ });
99349
99357
  OtherModulesCommunicator = class {
99350
99358
  constructor(rootWorkingDir, options, apiKey) {
99351
99359
  this.rootWorkingDir = rootWorkingDir;
@@ -194057,7 +194065,7 @@ var require_version = __commonJS({
194057
194065
  "use strict";
194058
194066
  Object.defineProperty(exports2, "__esModule", { value: true });
194059
194067
  exports2.version = void 0;
194060
- exports2.version = "14.2.3";
194068
+ exports2.version = "14.2.5";
194061
194069
  }
194062
194070
  });
194063
194071
 
@@ -201312,7 +201320,7 @@ var require_cli_core = __commonJS({
201312
201320
  await this.spinner.fail();
201313
201321
  logger_singleton_1.logger.error("CLI failed with error:", e.message);
201314
201322
  await this.shareErrorLogWithDashboard(e, true);
201315
- throw e;
201323
+ process.exit(1);
201316
201324
  }
201317
201325
  }
201318
201326
  async getLogContent() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coana-tech/cli",
3
- "version": "14.2.3",
3
+ "version": "14.2.5",
4
4
  "description": "Coana CLI",
5
5
  "bin": {
6
6
  "@coana-tech/cli": "./cli.js"