added more information in the errorfile.