Skip to content

Commit 7faf944

Browse files
authored
int: Beef up some error messages (#4369)
Signed-off-by: Larry Gritz <lg@larrygritz.com>
1 parent 5587213 commit 7faf944

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/libOpenImageIO/imageinput.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,8 @@ ImageInput::read_native_tile(int /*subimage*/, int /*miplevel*/, int /*x*/,
755755
// The base class read_native_tile fails. A format reader that supports
756756
// tiles MUST overload this virtual method that reads a single tile
757757
// (all channels).
758+
errorfmt("ImageInput::read_native_tile call unimplemented for {}",
759+
format_name());
758760
return false;
759761
}
760762

src/tiff.imageio/tiffoutput.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1809,7 +1809,8 @@ TIFFOutput::fix_bitdepth(void* data, int nvals)
18091809
v[i] = bit_range_convert<32, 24>(v[i]);
18101810
bit_pack(cspan<unsigned int>(v, v + nvals), v, 24);
18111811
} else {
1812-
OIIO_ASSERT(0 && "unsupported bit conversion -- shouldn't reach here");
1812+
errorfmt("unsupported bit conversion: {} -> {}", spec().format,
1813+
m_bitspersample);
18131814
}
18141815
}
18151816

0 commit comments

Comments
 (0)