diff --git a/src/gfx/process.cpp b/src/gfx/process.cpp index 07a7e6f3..46493463 100644 --- a/src/gfx/process.cpp +++ b/src/gfx/process.cpp @@ -741,7 +741,6 @@ struct std::hash { namespace unoptimized { -// TODO: this is very redundant with `TileData::TileData`; try merging both? static void outputTileData(Png const &png, DefaultInitVec const &attrmap, std::vector const &palettes, DefaultInitVec const &mappings) { @@ -1004,9 +1003,9 @@ void process() { } } - // TODO: nicer error message if (tileColors.size() > options.maxOpaqueColors()) { - fatal("Too many colors in tile at (%" PRIu32 ", %" PRIu32 ")", tile.x, tile.y); + fatal("Tile at (%" PRIu32 ", %" PRIu32 ") has %zu opaque colors, more than %" PRIu8 "!", + tile.x, tile.y, tileColors.size(), options.maxOpaqueColors()); } attrs.protoPaletteID = protoPalettes.size();