fix error catching on Repo.sync_all_with_jir