Removed duplicate error code