Don't delete crash dump files (#2915)

This commit is contained in:
Wesley Shillingford 2020-09-09 22:38:04 +01:00 committed by GitHub
commit 10cf2689c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -828,18 +828,6 @@ int main (int argc, char * const * argv)
std::cerr << "Error: Check that addr2line is installed and that nano_node_crash_load_address_dump_*.txt files exist." << std::endl;
result = -1;
}
else
{
// Delete the crash dump files. The user won't care about them after this.
num = 0;
while (boost::filesystem::exists (boost::str (format % num)))
{
boost::filesystem::remove (boost::str (format % num));
++num;
}
boost::filesystem::remove ("nano_node_backtrace.dump");
}
}
else
{
@ -847,6 +835,10 @@ int main (int argc, char * const * argv)
result = -1;
}
#endif
if (result == 0)
{
std::cout << (boost::format ("%1% created") % crash_report_filename).str () << std::endl;
}
}
else
{