@vocoder/cli 0.1.18 → 0.1.19

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/bin.mjs CHANGED
@@ -2236,11 +2236,11 @@ async function init(options = {}) {
2236
2236
  );
2237
2237
  spinner4.stop("New API key generated");
2238
2238
  printMcpSetup(apiKey);
2239
- } catch {
2239
+ } catch (err) {
2240
2240
  spinner4.stop("Failed to generate key");
2241
- p5.log.error(
2242
- "Could not generate API key. Try again or generate one from the dashboard."
2243
- );
2241
+ const msg = err instanceof Error ? err.message : String(err);
2242
+ p5.log.error(`Could not generate API key: ${msg}`);
2243
+ p5.log.info("Try again or generate one from the dashboard.");
2244
2244
  return 1;
2245
2245
  }
2246
2246
  }