Skip to content

Commit 3911f3e

Browse files
committed
ensure SHM write exceptions are logged and rethrown
1 parent b67fd7b commit 3911f3e

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

concore.hpp

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -709,8 +709,11 @@ class Concore{
709709
}
710710
}
711711

712-
catch(...){
713-
cout<<"skipping +"<<outpath<<port<<" /"<<name;
712+
catch (const std::exception &e) {
713+
std::cerr << e.what() << std::endl;
714+
throw;
715+
} catch (...) {
716+
throw;
714717
}
715718
}
716719

@@ -742,8 +745,11 @@ class Concore{
742745
}
743746
else throw 505;
744747
}
745-
catch(...){
746-
cout<<"skipping +"<<outpath<<port<<" /"<<name;
748+
catch (const std::exception &e) {
749+
std::cerr << e.what() << std::endl;
750+
throw;
751+
} catch (...) {
752+
throw;
747753
}
748754
}
749755

0 commit comments

Comments
 (0)