[PATCH] Correctly report an error if OSError is hit when setting up the source (#947634).