We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f657405 + 0537794 commit 9a905a1Copy full SHA for 9a905a1
1 file changed
include/xtensor-io/ximage.hpp
@@ -52,7 +52,7 @@ namespace xt
52
auto in(OIIO::ImageInput::open(filename));
53
if (!in)
54
{
55
- throw std::runtime_error("load_image(): Error reading image '" + filename + "'.");
+ throw std::runtime_error("load_image(): Error reading image '" + filename + "': " + OIIO::geterror());
56
}
57
58
const OIIO::ImageSpec& spec = in->spec();
@@ -124,7 +124,7 @@ namespace xt
124
auto out(OIIO::ImageOutput::create(filename));
125
if (!out)
126
127
- throw std::runtime_error("dump_image(): Error opening file '" + filename + "' to write image.");
+ throw std::runtime_error("dump_image(): Error opening file '" + filename + "' to write image: " + OIIO::geterror());
128
129
130
OIIO::ImageSpec spec = options.spec;
0 commit comments