Improve error message when revision missmatch