warn on can't read file, fixes #860