Skip to content

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

Merged
d-gubert merged 1 commit into
RocketChat:masterfrom
jituchoudhary367:fix/npm-install-error-propagation
May 25, 2026
Merged

fix: propagate npm install errors in rc-apps create#192
d-gubert merged 1 commit into
RocketChat:masterfrom
jituchoudhary367:fix/npm-install-error-propagation

Conversation

@jituchoudhary367
Copy link
Copy Markdown
Contributor

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.

@d-gubert d-gubert merged commit 9f82e57 into RocketChat:master May 25, 2026
1 check passed
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.

3 participants