Catch errors setting up example Repository.
(cherry picked from commit 134b84e79bb66a64e0a0b3cd870e655a35fafa5a)