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

Suppressed errors/exceptions when importing #2196

Closed
michaelm244 opened this issue Mar 30, 2023 · 1 comment
Closed

Suppressed errors/exceptions when importing #2196

michaelm244 opened this issue Mar 30, 2023 · 1 comment
Labels
bug Issue or pull request that identifies or fixes a bug logger-replacement

Comments

@michaelm244
Copy link

Summary

Simply importing/requiring this library seems to suppress any uncaught exceptions.

Steps To Reproduce:

  1. Run the simple Node.js script:
var { Connection } = require("@salesforce/core");
console.log("About to throw an error");
throw new Error("This is an error");

Expected result

See the error This is an error printed

Actual result

No error printed

If you simply comment out the require (var { Connection } = require("@salesforce/core");) observe that it then prints the error.

Additional information

SFDX CLI Version(to find the version of the CLI engine run sfdx --version): 3.34.6 (the version of this package)

OS and version: MacOS Venture 13.2.1

@michaelm244 michaelm244 changed the title Supressed errors/exceptions when importing Suppressed errors/exceptions when importing Mar 30, 2023
@WillieRuemmele WillieRuemmele transferred this issue from forcedotcom/sfdx-core Jun 13, 2023
@mshanemc mshanemc added the bug Issue or pull request that identifies or fixes a bug label Jul 11, 2023
@git2gus
Copy link

git2gus bot commented Jul 11, 2023

This issue has been linked to a new work item: W-13743129

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug logger-replacement
Projects
None yet
Development

No branches or pull requests

2 participants