Fail with an error if a file is outside the checkout tree.