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.29@21724 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Sep 23, 2024
1 parent cc6c013 commit 18f8d39
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 @@ -2348,6 +2348,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 << "error: " << e.what() << std::endl;
std_err.writeout();
Expand Down Expand Up @@ -2512,6 +2516,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 << "error: " << e.what() << std::endl;
std_err.writeout();
Expand Down

0 comments on commit 18f8d39

Please sign in to comment.