[erlang-patches] cover:compile_beam/1 (tools-2.6.2) crashes if BeamFile cannot be found

Oscar Hellström <>
Fri Oct 10 23:32:02 CEST 2008

compile_beam/1 crashes in do_compile_beam/2 if BeamFile doesn't exist

Since the docs don't have any proper return value for this case I don't
really know what to return, but here's a simple patch anyhow. I think it
should also deal with any other issue with reading the file, such as
access permissions etc.

Best regards
Oscar Hellström, 
Phone:  +44 (0)798 45 44 773
Mobile: +44 (0)207 65 50 337
Web:    http://www.erlang-consulting.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: otp_src_R12B.lib.cover.patch
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20081010/9fe7924c/attachment.ksh>

More information about the erlang-patches mailing list