improved error reporting in find_includes