Skip to content

Commit

Permalink
fix of the JSON error flow
Browse files Browse the repository at this point in the history
Signed-off-by: Gal Salomon <gal.salomon@gmail.com>
  • Loading branch information
galsalomon66 committed Mar 21, 2024
1 parent ec8dc79 commit 825456c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/s3select.h
Original file line number Diff line number Diff line change
Expand Up @@ -3340,9 +3340,9 @@ class json_object : public base_s3object
throw base_s3select_exception(error_description,base_s3select_exception::s3select_exp_en_t::FATAL);
}

if(status<0)
if(status<0 || m_error_count>100)
{
std::string error_description = std::string("failure upon JSON processing");
std::string error_description = std::string("failure upon JSON processing:") + m_error_description;
throw base_s3select_exception(error_description,base_s3select_exception::s3select_exp_en_t::FATAL);
return -1;
}
Expand Down

0 comments on commit 825456c

Please sign in to comment.