Skip to content

Commit

Permalink
Merge pull request CleverRaven#33087 from l29ah/crash-name-fail-report
Browse files Browse the repository at this point in the history
Report a verbose error message in case of backtrace failing to grab the symbols
  • Loading branch information
ZhilkinSerg authored Aug 9, 2019
2 parents 66d29cd + cb47a18 commit f31fcb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ static cata::optional<uintptr_t> debug_compute_load_offset(
cmd << nm_variant << ' ' << binary << " 2>&1";
FILE *nm = popen( cmd.str().c_str(), "re" );
if( !nm ) {
out << "\tbacktrace: popen(nm) failed\n";
out << "\tbacktrace: popen(nm) failed: " << strerror( errno ) << "\n";
return cata::nullopt;
}

Expand Down

0 comments on commit f31fcb0

Please sign in to comment.