Whenever the registration of an elector has been cancelled through error, such elector may petition the board of elections for the reinstatement of this registration not later than the tenth day preceding any primary or election, and after a hearing on said application, if error on the part of the board is proved, the board shall reinstate the registration of such elector.