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:
parent
242aa5585e
commit
292146305c
@ -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};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user