The court in inquiring into the regularity, legality and correctness of said proceedings, must disregard any error, determination or omission which does not affect the substantial rights of the parties to said special proceedings and it may approve and confirm such proceedings in part and disapprove and declare illegal or invalid other and subsequent parts of the proceedings.