explicitly import Base.error into examples