Skip to content

fix: propagate npm install errors in rc-apps create#192

Open
jituchoudhary367 wants to merge 1 commit intoRocketChat:masterfrom
jituchoudhary367:fix/npm-install-error-propagation
Open

fix: propagate npm install errors in rc-apps create#192
jituchoudhary367 wants to merge 1 commit intoRocketChat:masterfrom
jituchoudhary367:fix/npm-install-error-propagation

Conversation

@jituchoudhary367
Copy link
Copy Markdown

When npm install fails during app scaffolding, the previous reject() call passed no argument, making the rejection reason undefined and the CLI output completely useless.

  • Pass stderr (or exec error message) to reject() with a clear message
  • Wrap writeFiles() in try/catch in create.ts so failures surface correctly
  • Fix copy-paste validation message: 'color' -> 'category' in submit.ts

When npm install fails during app scaffolding, the previous
reject() call passed no argument, making the rejection reason
undefined and the CLI output completely useless.

- Pass stderr (or exec error message) to reject() with a clear message
- Wrap writeFiles() in try/catch in create.ts so failures surface correctly
- Fix copy-paste validation message: 'color' -> 'category' in submit.ts
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 6, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants