Răsfoiți Sursa

tells which file has issue when failing some 24 bit PNG decoding

Nicolas Cannasse 12 ani în urmă
părinte
comite
6c5675b61a
1 a modificat fișierele cu 4 adăugiri și 1 ștergeri
  1. 4 1
      genswf.ml

+ 4 - 1
genswf.ml

@@ -876,7 +876,10 @@ let build_swf9 com file swc =
 									tag ~ext:true (TBitsLossless2 { bll_id = !cid; bll_format = 5; bll_width = h.Png.png_width; bll_height = h.Png.png_height; bll_data = cmp_data })
 								| _ -> raw())
 							with Exit ->
-								raw())
+								raw()
+							| _ ->
+								failwith ("Could not read PNG " ^ file)
+							)
 						| _ -> raw()
 					) in
 					t :: loop l