(search_file): Improve error message.