-
Couldn't load subscription status.
- Fork 11
Fixup for wrapping errors in CLIError constructor #19
Conversation
|
Thanks for the contribution! Unfortunately we can't verify the commit author(s): Ross Adamson <r***@r***.com>. One possible solution is to add that email to your GitHub account. Alternatively you can change your commits to another email and force push the change. After getting your commits associated with your GitHub account, sign the Salesforce.com Contributor License Agreement and this Pull Request will be revalidated. |
Codecov Report
@@ Coverage Diff @@
## master #19 +/- ##
==========================================
- Coverage 70.54% 66.91% -3.63%
==========================================
Files 7 7
Lines 129 133 +4
Branches 31 36 +5
==========================================
- Hits 91 89 -2
- Misses 27 33 +6
Partials 11 11
Continue to review full report at Codecov.
|
This makes it so that `this.error(new Error(...))` within oclif command `run()` prints nicely, and without a stack trace in non-debug mode.
8aacfd6 to
48cc324
Compare
|
Thanks for the contribution! Before we can merge this, we need @rizzlesauce to sign the Salesforce.com Contributor License Agreement. |
Thanks @rizzlesauce for your contribution on #19 and highlighting the augmenting the error. Some of those ideas are pulled into this commit. Co-authored-by: Ross Adamson <[email protected]>
Thanks @rizzlesauce for your contribution on #19 and highlighting the augmenting the error. Some of those ideas are pulled into this commit. Co-authored-by: Ross Adamson <[email protected]>
|
@chadian I'm confused, was this problem solved? Here's a test that throws an error: |
This makes it so that
this.error(new Error(...))within oclifcommand
run()prints nicely, and without a stack trace innon-debug mode.