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

Do not explode with empty tag #1008

Closed
wants to merge 1 commit into from
Closed

Do not explode with empty tag #1008

wants to merge 1 commit into from

Conversation

bmagyar
Copy link
Member

@bmagyar bmagyar commented May 3, 2023

After many hours of work, I've finally implemented a solution for #994

@destogl
Copy link
Member

destogl commented May 3, 2023

Dear Sir, in so many hours, you could also add a test for it.

@@ -68,7 +69,8 @@ std::string get_text_for_element(
const auto get_text_output = element_it->GetText();
if (!get_text_output)
{
throw std::runtime_error("text not specified in the " + tag_name + " tag");
std::cerr << "text not specified in the " << tag_name << " tag" << std::endl;
Copy link
Contributor

Choose a reason for hiding this comment

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

I did not open a PR in the first place, since the desired behavior wasn't obvious to me. Is this to be considered a non-expected situation (as printing to std::err still suggests)?

@fmauch fmauch mentioned this pull request May 11, 2023
@bmagyar bmagyar closed this May 14, 2023
@bmagyar bmagyar deleted the bmagyar-patch-2-1 branch December 4, 2023 10:42
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.

3 participants