adding error code checks to epetra export