No error or omission which may be made in the proceedings of the governing body, or of any officer of a municipality in referring, reporting upon, ordering, or otherwise acting upon any local improvement to be financed by special assessments or in making or certifying any such    assessment shall vitiate or in any way affect the assessment. If it shall appear that by reason of any such error or omission substantial injury has been done to any party or parties claiming to be aggrieved thereby, the court shall alter such assessment as may be just, and the same then shall be enforced.