Show error reason when compiler cannot write file
Show error reason when compiler cannot write file

When the compiler fails to write an output file, it used to just print
"error writing file".  With this change, it also prints the error
reason:

    $ echo "-module(foo)." > foo.erl
    $ chmod -w .
    $ erlc foo.erl
    /tmp/bar/foo.bea#: error writing file: permission denied

dumbbell/otp,erlang/otp,getong/otp,lightcyphers/otp,falkevik/otp,ferd/otp,emile/otp,legoscia/otp,g-andrade/otp,lrascao/otp,emacsmirror/erlang,lightcyphers/otp,dgud/otp,getong/otp,lemenkov/otp,getong/otp,ferd/otp,isvilen/otp,aboroska/otp,weisslj/otp,mikpe/otp,legoscia/otp,mikpe/otp,RoadRunnr/otp,bsmr-erlang/otp,fenollp/otp,psyeugenic/otp,matwey/otp,lightcyphers/otp,emacsmirror/erlang,g-andrade/otp,bsmr-erlang/otp,bsmr-erlang/otp,emacsmirror/erlang,vladdu/otp,psyeugenic/otp,rlipscombe/otp,aboroska/otp,bsmr-erlang/otp,vinoski/otp,matwey/otp,emile/otp,bsmr-erlang/otp,lemenkov/otp,vinoski/otp,basho/otp,fenollp/otp,neeraj9/otp,erlang/otp,basho/otp,potatosalad/otp,vladdu/otp,g-andrade/otp,legoscia/otp,dgud/otp,lemenkov/otp,isvilen/otp,RoadRunnr/otp,g-andrade/otp,kvakvs/otp,aboroska/otp,bugs-erlang-org/otp,matwey/otp,g-andrade/otp,bernardd/otp,emacsmirror/erlang,neeraj9/otp,basho/otp,vinoski/otp,bugs-erlang-org/otp,emile/otp,weisslj/otp,ahmedshafeeq/otp,legoscia/otp,mikpe/otp,neeraj9/otp,erlang/otp,release-project/otp,vinoski/otp,basho/otp,tuncer/otp,rlipscombe/otp,g-andrade/otp,isvilen/otp,mikpe/otp,g-andrade/otp,dumbbell/otp,potatosalad/otp,massemanet/otp,weisslj/otp,basho/otp,lemenkov/otp,emacsmirror/erlang,matwey/otp,lightcyphers/otp,ahmedshafeeq/otp,erlang/otp,mikpe/otp,saleyn/otp,cobusc/otp,massemanet/otp,getong/otp,neeraj9/otp,aboroska/otp,ahmedshafeeq/otp,bjorng/otp,lrascao/otp,weisslj/otp,massemanet/otp,RoadRunnr/otp,cobusc/otp,bugs-erlang-org/otp,vinoski/otp,cobusc/otp,ahmedshafeeq/otp,goertzenator/otp,aboroska/otp,bernardd/otp,bsmr-erlang/otp,basho/otp,vinoski/otp,tuncer/otp,aboroska/otp,bjorng/otp,bsmr-erlang/otp,potatosalad/otp,RoadRunnr/otp,RoadRunnr/otp,saleyn/otp,ferd/otp,falkevik/otp,bugs-erlang-org/otp,jj1bdx/otp,isvilen/otp,saleyn/otp,lrascao/otp,uabboli/otp,g-andrade/otp,RaimoNiskanen/otp,electricimp/otp,bugs-erlang-org/otp,dumbbell/otp,RaimoNiskanen/otp,fenollp/otp,lemenkov/otp,RoadRunnr/otp,dgud/otp,falkevik/otp,dgud/otp,release-project/otp,ahmedshafeeq/otp,cobusc/otp,saleyn/otp,isvilen/otp,lrascao/otp,getong/otp,rlipscombe/otp,massemanet/otp,legoscia/otp,legoscia/otp,ahmedshafeeq/otp,uabboli/otp,getong/otp,potatosalad/otp,lightcyphers/otp,fenollp/otp,RaimoNiskanen/otp,bernardd/otp,isvilen/otp,legoscia/otp,falkevik/otp,lightcyphers/otp,uabboli/otp,basho/otp,potatosalad/otp,RaimoNiskanen/otp,tuncer/otp,isvilen/otp,uabboli/otp,kvakvs/otp,ferd/otp,g-andrade/otp,rlipscombe/otp,cobusc/otp,erlang/otp,jj1bdx/otp,RaimoNiskanen/otp,lemenkov/otp,dgud/otp,bjorng/otp,uabboli/otp,lrascao/otp,RaimoNiskanen/otp,release-project/otp,mikpe/otp,goertzenator/otp,electricimp/otp,bernardd/otp,electricimp/otp,rlipscombe/otp,emacsmirror/erlang,kvakvs/otp,massemanet/otp,weisslj/otp,electricimp/otp,kvakvs/otp,massemanet/otp,psyeugenic/otp,release-project/otp,vinoski/otp,dgud/otp,release-project/otp,bjorng/otp,rlipscombe/otp,uabboli/otp,rlipscombe/otp,psyeugenic/otp,psyeugenic/otp,erlang/otp,potatosalad/otp,release-project/otp,saleyn/otp,fenollp/otp,bernardd/otp,vinoski/otp,bjorng/otp,ahmedshafeeq/otp,kvakvs/otp,dgud/otp,potatosalad/otp,dumbbell/otp,neeraj9/otp,matwey/otp,ferd/otp,release-project/otp,ahmedshafeeq/otp,psyeugenic/otp,bernardd/otp,uabboli/otp,vinoski/otp,bugs-erlang-org/otp,dumbbell/otp,uabboli/otp,lrascao/otp,weisslj/otp,weisslj/otp,vladdu/otp,weisslj/otp,jj1bdx/otp,mikpe/otp,cobusc/otp,erlang/otp,electricimp/otp,fenollp/otp,getong/otp,matwey/otp,RaimoNiskanen/otp,tuncer/otp,emile/otp,erlang/otp,rlipscombe/otp,tuncer/otp,vladdu/otp,fenollp/otp,mikpe/otp,neeraj9/otp,RaimoNiskanen/otp,cobusc/otp,emile/otp,release-project/otp,vladdu/otp,falkevik/otp,ferd/otp,emile/otp,goertzenator/otp,tuncer/otp,RoadRunnr/otp,RaimoNiskanen/otp,falkevik/otp,lightcyphers/otp,lemenkov/otp,falkevik/otp,potatosalad/otp,falkevik/otp,aboroska/otp,mikpe/otp,saleyn/otp,aboroska/otp,goertzenator/otp,psyeugenic/otp,g-andrade/otp,jj1bdx/otp,ferd/otp,dumbbell/otp,vladdu/otp,bernardd/otp,jj1bdx/otp,basho/otp,dumbbell/otp,goertzenator/otp,potatosalad/otp,rlipscombe/otp,lemenkov/otp,jj1bdx/otp,matwey/otp,getong/otp,ahmedshafeeq/otp,tuncer/otp,jj1bdx/otp,bugs-erlang-org/otp,legoscia/otp,RoadRunnr/otp,aboroska/otp,fenollp/otp,isvilen/otp,neeraj9/otp,electricimp/otp,emacsmirror/erlang,lightcyphers/otp,release-project/otp,emile/otp,dgud/otp,vinoski/otp,emacsmirror/erlang,goertzenator/otp,potatosalad/otp,goertzenator/otp,dumbbell/otp,emacsmirror/erlang,mikpe/otp,basho/otp,bsmr-erlang/otp,isvilen/otp,massemanet/otp,emile/otp,jj1bdx/otp,vladdu/otp,saleyn/otp,goertzenator/otp,dgud/otp,kvakvs/otp,bsmr-erlang/otp,jj1bdx/otp,falkevik/otp,kvakvs/otp,bjorng/otp,massemanet/otp,vladdu/otp,saleyn/otp,electricimp/otp,emacsmirror/erlang,ferd/otp,fenollp/otp,electricimp/otp,weisslj/otp,dgud/otp,isvilen/otp,RoadRunnr/otp,ferd/otp,getong/otp,lrascao/otp,uabboli/otp,bjorng/otp,massemanet/otp,legoscia/otp,getong/otp,kvakvs/otp,erlang/otp,vladdu/otp,lrascao/otp,bugs-erlang-org/otp,saleyn/otp,rlipscombe/otp,bjorng/otp,goertzenator/otp,matwey/otp,emile/otp,lrascao/otp,tuncer/otp,tuncer/otp,electricimp/otp,bernardd/otp,neeraj9/otp,kvakvs/otp,cobusc/otp,matwey/otp,bjorng/otp,bjorng/otp,jj1bdx/otp,psyeugenic/otp,dumbbell/otp,dumbbell/otp,bernardd/otp,erlang/otp