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

Better error-handling #339

Open
johnlaing opened this issue May 8, 2021 · 3 comments
Open

Better error-handling #339

johnlaing opened this issue May 8, 2021 · 3 comments

Comments

@johnlaing
Copy link
Contributor

We should catch error messages passed back to us by the API. It would be particularly helpful to capture the message and show it to the user. The status quo of ignoring API error messages often causes a real error (the kind that stops execution) just down the line, except now with a cryptic message that doesn't shed much light on what went wrong.

Such an example is here: #338 (comment)

@eddelbuettel
Copy link
Member

It's been a while since I have been in the code but ... what can we do in general? Do we get earlier status messages?

@eddelbuettel
Copy link
Member

Looking at #338 we can probably just Rcpp::stop( txtOfTheReceivedErrorMessage ) which then goes to the top R prompt.

@johnlaing
Copy link
Contributor Author

Yes, something like that should work. We'll need to figure out how to identify/grab the responseError to get to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants