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

Handle errors when providing invalid test result id #153

Closed
lcampos opened this issue Mar 10, 2021 · 1 comment
Closed

Handle errors when providing invalid test result id #153

lcampos opened this issue Mar 10, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@lcampos
Copy link
Contributor

lcampos commented Mar 10, 2021

Summary

Provide better error messages when a user provides an invalid id for force:apex:test:report

Steps To Reproduce:

  1. Provide an invalid Id to the test report command e.g. sfdx force:apex:test:report -i 7075A0000BiWZjxx -r human
  2. Returns an unhandled query error:
ERROR running force:apex:test:report:  
UserId FROM ApexTestRunResult WHERE AsyncApexJobId = '7075A0000BiWZjxx'
                                    ^
ERROR at Row:1:Column:150
invalid ID field: 7075A0000BiWZjxx

Expected result

The command should return a clear error message letting the user know the provided data is invalid.

@AnanyaJha
Copy link
Contributor

Addressed by PR #162

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants