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

curl_easy_exception doesn't set any message into std::exception #129

Closed
KingDuckZ opened this issue Aug 29, 2020 · 1 comment
Closed

curl_easy_exception doesn't set any message into std::exception #129

KingDuckZ opened this issue Aug 29, 2020 · 1 comment
Assignees

Comments

@KingDuckZ
Copy link

In my main() function I have a try/catch block that catches std::exception. When I print err.what() the output is just "exception", and the original message "Couldn't connect to server" is lost.
I don't want to include curlcpp files in my main.cpp, so I can't access the original exception type.

@JosephP91
Copy link
Owner

JosephP91 commented Aug 31, 2020

@KingDuckZ this should now be fixed in #129.

@JosephP91 JosephP91 self-assigned this Aug 31, 2020
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