aiprotocol-sbi 1.2.3 → 1.2.4

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.
@@ -83,6 +83,11 @@ let SetupCommand = class SetupCommand {
83
83
  this.output.blank();
84
84
  }
85
85
  const appStatus = await this.backend.getApplicationStatus(botId);
86
+ if (!appStatus) {
87
+ this.output.warn(`Application does not exist or failed to fetch due to an error.`);
88
+ this.output.warn(`Please make sure the arguments passed are correct. Reset and restart the command again.`);
89
+ process.exit(1);
90
+ }
86
91
  if (appStatus?.type === "GRANT") {
87
92
  await this.handleGrantStatus(existingBot, appStatus, opts);
88
93
  }