<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def error_state(self):
 """Set the error condition"""

        self.buildstate.state.lasttime = time()
        self.buildstate.commit()
        return self.buildstate.state.error