Don't delete crash dump files (#2915)
This commit is contained in:
parent
234397d3f7
commit
10cf2689c8
1 changed files with 4 additions and 12 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue