Added addPartError declaration