Correctly handle errors from file info callback