Make error_message() return the message
See original GitHub issueWhat is the expected behavior?
The error message will begin to come up from backends soon. IBMQ Provider needs to accommodate them.
The error message will be found in the qObjectResult
in json as:
"qObjectResult": {
<normal qObjectResult fields>
"error": {
"message": "Error message example",
"code": 9999
}
}
The error field will only appear if there is an error, so the job status should still be checked before attempting to access the "error"
.
This should be a simple enough matter of just digging a bit deeper into the job_response.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How to return a error message in R?
Simply include stop() inside your function/script. If you'd like an error message, include it inside stop() like so stop("This is an error ......
Read more >Custom Error Messages in Spring REST API
Learn a different ways of handling most common Spring exceptions and returning detailed custom error messages from a Spring REST API.
Read more >Error.prototype.message - JavaScript - MDN Web Docs
This property contains a brief description of the error if one is available or has been set. The message property combined with the...
Read more >How to Generate Your Own Error Messages in R
Generating your own messages may sound strange, but you can actually prevent bugs in R by generating your own errors.
Read more >JavaScript Error message Property
In JavaScript error message property is used to set or return the error message. Syntax: errorObj.message. Return Value: It returns a string ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think the provider’s work on this is done for now. Just to do a quick recap,
job.error_message()
will retrieve the job result, and eitherSome parts of the stack might not be producing error messages right now, but when they do so in the correct format, the provider will automatically pick them up.
This should be taken off hold as it is implemented on some devices now.