Skip to content

Commit b9bc09a

Browse files
authored
[QC-381] Improve printing exceptions in post-processing (#454)
1 parent ea291cf commit b9bc09a

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Framework/src/runPostProcessing.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ int main(int argc, const char* argv[])
7171
} catch (const bpo::error& ex) {
7272
ILOG(Error) << "Exception caught: " << ex.what() << ENDM;
7373
return 1;
74+
} catch (const boost::exception& ex) {
75+
ILOG(Error) << "Exception caught: " << boost::current_exception_diagnostic_information(true) << ENDM;
76+
return 1;
7477
}
7578

7679
return 0;

Framework/src/runPostProcessingOCC.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ int main(int argc, const char* argv[])
211211

212212
} catch (const bpo::error& ex) {
213213
ILOG(Error) << ex.what() << ENDM;
214+
return 1;
215+
} catch (const boost::exception& ex) {
216+
ILOG(Error) << "Exception caught: " << boost::current_exception_diagnostic_information(true) << ENDM;
217+
return 1;
214218
}
215219

216220
return 0;

0 commit comments

Comments
 (0)