File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
source/lib/rocprofiler-sdk-att Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,16 @@ CodeFile::~CodeFile()
155155
156156 std::vector<std::string> path_elements (filepath.begin (), filepath.end ());
157157 navigate (jsnapfiletree, path_elements, newfile.str ());
158- rocprofiler::common::filesystem::copy (filepath, dir / newfile.str ());
158+
159+ constexpr auto opt = rocprofiler::common::filesystem::copy_options::overwrite_existing;
160+ try
161+ {
162+ rocprofiler::common::filesystem::copy (filepath, dir / newfile.str (), opt);
163+ } catch (std::exception& e)
164+ {
165+ ROCP_WARNING << " Missing source file " << filepath << " : " << e.what ();
166+ ROCP_CI_LOG (ERROR) << " Unable to copy source files: " << (dir / newfile.str ());
167+ }
159168 }
160169 }
161170
You can’t perform that action at this time.
0 commit comments