freebsd-ports/graphics/pfstmo/files/patch-src-mantiuk06-pfstmo_mantiuk06.cpp
Danilo Egea Gondolfo 86b70fb123 - Update from 1.2 to 1.5
- Add stage support

PR:		ports/191180
Submitted by:	ii@any.com.ru
2014-06-20 15:46:27 +00:00

17 lines
591 B
C++

--- src/mantiuk06/pfstmo_mantiuk06.cpp.orig 2009-09-02 01:11:39.000000000 +0000
+++ src/mantiuk06/pfstmo_mantiuk06.cpp 2014-06-18 15:29:52.298957047 +0000
@@ -219,6 +219,14 @@
try {
tmo_mantiuk06( argc, argv );
}
+ catch (std::bad_alloc ex) {
+ fprintf(stderr, PROG_NAME " error: out of memory\n");
+ return EXIT_FAILURE;
+ }
+ catch (std::exception ex) {
+ fprintf(stderr, PROG_NAME " error: %s\n", ex.what());
+ return EXIT_FAILURE;
+ }
catch( pfs::Exception ex ) {
fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
return EXIT_FAILURE;