Removed unneeded error check print statement.