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

More informative cast error message #4162

Merged

Conversation

lisitsyn
Copy link
Member

@lisitsyn lisitsyn commented Feb 8, 2018

No description provided.

@karlnapf
Copy link
Member

karlnapf commented Feb 9, 2018

LGTM! thx!

{
SG_ERROR(
"Get \"%s\" failed: %s.\n", _tag.name().c_str(), exc.what());
"Get \"%s\" failed. Expected %s, got %s.\n",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would maybe give a little more info:
"Getting parameter parameter CLASSNAME::PARAMNAME failed. Requested type is X, but internal type is Y"

Copy link
Member

@karlnapf karlnapf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I restarted travis but I assume the unit tests passed?

@lisitsyn lisitsyn merged commit d1763b8 into shogun-toolbox:develop Feb 9, 2018
karlnapf pushed a commit that referenced this pull request Feb 9, 2018
* More informative cast error message

* Use c_str when formatting
ktiefe pushed a commit to ktiefe/shogun that referenced this pull request Jul 30, 2019
* More informative cast error message

* Use c_str when formatting
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

Successfully merging this pull request may close these issues.

None yet

2 participants