Skip to content

Commit

Permalink
catch error message on font parsing error
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Oct 2, 2013
1 parent 52122bb commit 5b0b06b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genswf.ml
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ let build_swf9 com file swc =
| (Meta.Font,(EConst (String file),p) :: args,_) :: l ->
let file = try Common.find_file com file with Not_found -> file in
let ch = try open_in_bin file with _ -> error "File not found" p in
let ttf = TTFParser.parse ch in
let ttf = try TTFParser.parse ch with e -> error ("Error while parsing font " ^ file ^ " : " ^ Printexc.to_string e) p in
close_in ch;
let range_str = match args with
| [EConst (String str),_] -> str
Expand Down

0 comments on commit 5b0b06b

Please sign in to comment.