Fix sshExec() errors not displaying#9743
Merged
Tobbe merged 3 commits intoredwoodjs:mainfrom Dec 22, 2023
Mirai-Miki:baremetal-fix
Merged
Fix sshExec() errors not displaying#9743Tobbe merged 3 commits intoredwoodjs:mainfrom Mirai-Miki:baremetal-fix
Tobbe merged 3 commits intoredwoodjs:mainfrom
Mirai-Miki:baremetal-fix
Conversation
Contributor
|
I just tried this 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
added a commit
that referenced
this pull request
Dec 22, 2023
Co-authored-by: Tobbe Lundberg <tobbe@tlundberg.com>
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
added a commit
that referenced
this pull request
Jan 1, 2024
Co-authored-by: Tobbe Lundberg <tobbe@tlundberg.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


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 productionand 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.