Andrew, I do not think that the c++ code "try" is going to work -- it is never used anywhere else and probably for a good reason. Is there an alternative?
well, this is official way openexr does error handling ...
it also fixes my error (try to switch from brender/jpeg to brender /exr without removing those brender files - without patch we crash as soon as openexr meet wrong input ....) and print error message in this case.
so it obviously work at least on c++11 compilers (enforced by openexr itself)
Fileext reading error handling for bg render
commit cac447973db936f7d5594c83521c34f3e5a9c187
Author: Andrew Randrianasulu <randrianasulu@gmail.com>
Date: Wed Aug 30 05:27:10 2023 +0300