--- otp_src_R12B-4.orig/lib/tools/src/cover.erl	2008-10-10 12:56:51.000000000 -0700
+++ otp_src_R12B-4/lib/tools/src/cover.erl	2008-10-10 14:12:07.000000000 -0700
@@ -1231,6 +1231,8 @@
 	    {error,E};
 	encrypted_abstract_code=E ->
 	    {error,E};
+	{error, _}=E ->
+	    E;
 	{Vsn,Code} ->
             Forms0 = epp:interpret_file_attribute(Code),
 	    {Forms,Vars} = transform(Vsn, Forms0, Module, Beam),
@@ -1263,6 +1265,8 @@
 	    AbstractCode;
 	{error,beam_lib,{key_missing_or_invalid,_,_}} ->
 	    encrypted_abstract_code;
+	{error,beam_lib,{file_error,_,Reason}} ->
+	    {error, Reason};
 	Error -> Error
     end.
 
