Skip to content

Commit

Permalink
Better not throw here ...
Browse files Browse the repository at this point in the history
  • Loading branch information
tycho-kirchner committed Nov 4, 2021
1 parent aa57d86 commit e628540
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/shell-integration-fanotify/libshournal-shellwatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ static void initSymIfNeeded(){
g_shell.orig_strcpy = reinterpret_cast<strcpy_func_t>(os::dlsym(RTLD_NEXT, "strcpy"));

return;
} catch(const os::ExcOs& ex){
std::cerr << "shournal shell integration fatal error: "
<< "failed to load original symbols, expect the worst..." << ex.what();
throw ;
} catch(const std::exception& ex){
fprintf(stderr,
"shournal shell integration fatal error: "
"failed to load original symbols, expect "
"the worst: %s", ex.what());
}
});

Expand Down

0 comments on commit e628540

Please sign in to comment.