Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sshExec() errors not displaying #9743

Merged
merged 3 commits into from
Dec 22, 2023
Merged

Fix sshExec() errors not displaying #9743

merged 3 commits into from
Dec 22, 2023

Conversation

Mirai-Miki
Copy link
Contributor

sshExec errors were not printing to console when running yarn rw deploy baremetal production. I had errors both in update and install stages which both just exited without the console.error printing the error message.

To reproduce the issue, in the deploy.toml change the name of "branch" to something incorrect as this will trigger an error. Then run yarn rw deploy baremetal production and the command will exit without displaying an error. You can also just put a console.log() in the async task: callbacks which also don't seem to fire.

To fix the issue I just replaced the console.errors() with a throw new Error() which gets caught by the handler and displays the message as it should.

My system environment while having the problem:
System:
OS: Windows 11 10.0.22621
Binaries:
Node: 21.5.0 - ~\AppData\Local\Temp\xfs-71f3a1eb\node.CMD
Yarn: 3.7.0 - ~\AppData\Local\Temp\xfs-71f3a1eb\yarn.CMD
Browsers:
Edge: Chromium (120.0.2210.77)
npmPackages:
@redwoodjs/core: 6.5.1 => 6.5.1

I was also using the terminal in VSCode if that matters.

@Tobbe
Copy link
Member

Tobbe commented Dec 22, 2023

I just tried this

Before:
image

After:
image

So much better! Thank you @Mirai-Miki 🙏

(And this was in iTerm on MacOS, so now we have good coverage of different environments too 🙂 )

@Tobbe Tobbe enabled auto-merge (squash) December 22, 2023 16:24
@Tobbe Tobbe added the release:fix This PR is a fix label Dec 22, 2023
@Tobbe Tobbe added this to the next-release-patch milestone Dec 22, 2023
@Tobbe Tobbe merged commit 751214b into redwoodjs:main Dec 22, 2023
34 of 36 checks passed
Tobbe added a commit that referenced this pull request Dec 22, 2023
dac09 added a commit to dac09/redwood that referenced this pull request Dec 27, 2023
…redwood into fix/enhance-error-apollo-suspense

* 'fix/enhance-error-apollo-suspense' of github.com:dac09/redwood: (92 commits)
  chore(deps): update dependency @types/yargs to v17.0.32 (redwoodjs#9759)
  Make it easier to find useMatch docs (redwoodjs#9756)
  chore(unit tests): Use side-effect import to fix TS errors (redwoodjs#9754)
  fix(context): Refactor context (redwoodjs#9371)
  docs: Replaced deprecated <Set private> with PrivateSet within router.md (redwoodjs#9749)
  add TS support for storybook preview tsx config extension (redwoodjs#9309)
  fix(studio): Fix windows path issues (redwoodjs#9752)
  redwoodjs#9620: Update studio to support variable components (Mailer) (redwoodjs#9639)
  chore(tasks): Add comparison view to nmHoisting visualisation (redwoodjs#9751)
  chore(cli): make fs modules used in the CLI consistent (redwoodjs#9746)
  chore(tooling): Make sure console boxen print on a new line
  chore(CI): fix publish release candidate
  feat(CLI): add check node version middleware, rm `.nvmrc`, yarn engines (redwoodjs#9728)
  docs: added some clarification on serverless functions getting executed in a non-serverless environment (redwoodjs#9742)
  Fix sshExec() errors not displaying (redwoodjs#9743)
  chore(tooling): Add missing word in release tooling output
  Update Metadata docs (redwoodjs#9744)
  chore(CI): update test project fixture and CRWA for deploy target CI repo (redwoodjs#9730)
  chore(tooling): add script for getting nested dependency data (redwoodjs#9734)
  Trusted Documents docs: Proofreading corrections (redwoodjs#9737)
  ...
dac09 added a commit to dac09/redwood that referenced this pull request Dec 27, 2023
…ath-aliases

* 'main' of github.com:redwoodjs/redwood: (92 commits)
  chore(deps): update dependency @types/yargs to v17.0.32 (redwoodjs#9759)
  Make it easier to find useMatch docs (redwoodjs#9756)
  chore(unit tests): Use side-effect import to fix TS errors (redwoodjs#9754)
  fix(context): Refactor context (redwoodjs#9371)
  docs: Replaced deprecated <Set private> with PrivateSet within router.md (redwoodjs#9749)
  add TS support for storybook preview tsx config extension (redwoodjs#9309)
  fix(studio): Fix windows path issues (redwoodjs#9752)
  redwoodjs#9620: Update studio to support variable components (Mailer) (redwoodjs#9639)
  chore(tasks): Add comparison view to nmHoisting visualisation (redwoodjs#9751)
  chore(cli): make fs modules used in the CLI consistent (redwoodjs#9746)
  chore(tooling): Make sure console boxen print on a new line
  chore(CI): fix publish release candidate
  feat(CLI): add check node version middleware, rm `.nvmrc`, yarn engines (redwoodjs#9728)
  docs: added some clarification on serverless functions getting executed in a non-serverless environment (redwoodjs#9742)
  Fix sshExec() errors not displaying (redwoodjs#9743)
  chore(tooling): Add missing word in release tooling output
  Update Metadata docs (redwoodjs#9744)
  chore(CI): update test project fixture and CRWA for deploy target CI repo (redwoodjs#9730)
  chore(tooling): add script for getting nested dependency data (redwoodjs#9734)
  Trusted Documents docs: Proofreading corrections (redwoodjs#9737)
  ...
@Tobbe Tobbe modified the milestones: next-release-patch, v6.6.1 Jan 1, 2024
Tobbe added a commit that referenced this pull request Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix This PR is a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants