fix: error pointer usage in check_single_file_dependency()