Better error when File returns error code