The dismissal of a suit for specific performance of a contract or part thereof shall bar the plaintiffs right to sue for compensation for the breach of such contract or part, as the case may be, but shall not bar his right to sue for any other relief to which he may be entitled, by reason of such breach.