add: throw exception while init/check repo failed.