Learn more about cloning repositories
You have read-only access
remove cleanUpAndFail, and replace it with exit(). because that's what it does unless srcMode was set, and srcMode is never set.