Report error from target file

Fix issue #779
you do not need this any more. we are not writing anything