diff --git a/openmpt123/openmpt123.cpp b/openmpt123/openmpt123.cpp index e53fd8d6db9..d2f79c0a535 100644 --- a/openmpt123/openmpt123.cpp +++ b/openmpt123/openmpt123.cpp @@ -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( e ) << lf; + std_err.writeout(); + return 1; } catch ( std::exception & e ) { std_err << "error: " << e.what() << std::endl; std_err.writeout(); @@ -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( e ) << lf; + std_err.writeout(); + return 1; } catch ( std::exception & e ) { std_err << "error: " << e.what() << std::endl; std_err.writeout();