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.30@21723 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Sep 23, 2024
1 parent a384dd5 commit f406708
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 @@ -2358,6 +2358,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 @@ -2522,6 +2526,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 f406708

Please sign in to comment.