Skip to content

Commit

Permalink
Merged revision(s) 21721 from trunk/OpenMPT:
Browse files Browse the repository at this point in the history
[Fix] openmpt123: Catch openmpt123::exception.
........


git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.31@21722 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Sep 23, 2024
1 parent afaeda2 commit 86ba3f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions openmpt123/openmpt123.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2301,6 +2301,10 @@ static int main( int argc, char * argv [] ) {
return 0;
} catch ( silent_exit_exception & ) {
return 0;
} catch ( exception & e ) {
std_err << MPT_USTRING("error: ") << mpt::get_exception_text<mpt::ustring>( e ) << lf;
std_err.writeout();
return 1;
} catch ( std::exception & e ) {
std_err << MPT_USTRING("error: ") << mpt::get_exception_text<mpt::ustring>( e ) << lf;
std_err.writeout();
Expand Down Expand Up @@ -2468,6 +2472,10 @@ static int main( int argc, char * argv [] ) {
#endif
} catch ( silent_exit_exception & ) {
return 0;
} catch ( exception & e ) {
std_err << MPT_USTRING("error: ") << mpt::get_exception_text<mpt::ustring>( e ) << lf;
std_err.writeout();
return 1;
} catch ( std::exception & e ) {
std_err << MPT_USTRING("error: ") << mpt::get_exception_text<mpt::ustring>( e ) << lf;
std_err.writeout();
Expand Down

0 comments on commit 86ba3f8

Please sign in to comment.