1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 09:27:59 +00:00

Improve error reporting.

[originally from svn r7135]
This commit is contained in:
Simon Tatham 2007-01-22 14:04:33 +00:00
parent 242aa5585e
commit 292146305c

View File

@ -203,7 +203,8 @@ sub readicon {
$currbits += $depth;
if ($x < $w && defined ($pix = $data->[$y*$w+$x])) {
if (!defined $pal{$pix}) {
die "illegal colour value $pix at pixel $i in $filename\n";
$pixhex = sprintf "%02x%02x%02x", unpack "CCC", $pix;
die "illegal colour value $pixhex at pixel ($x,$y) in $filename\n";
}
$currbyte |= $pal{$pix};
}