Skip to content

Commit 486cf59

Browse files
author
rblazek
committed
note about exceptions in GRASS lib (-fexception)
git-svn-id: http://svn.osgeo.org/qgis/trunk@12781 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent e7c24a2 commit 486cf59

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/providers/grass/qgsgrass.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,10 @@ int QgsGrass::error_routine( char *msg, int fatal )
391391

392392
int QgsGrass::error_routine( const char *msg, int fatal )
393393
{
394+
// Unfortunately the exceptions thrown here can only be caught if GRASS libraries are compiled
395+
// with -fexception option on Linux (works on Windows)
396+
// GRASS developers are reluctant to add -fexception by default
397+
// https://trac.osgeo.org/grass/ticket/869
394398
QgsDebugMsg( QString( "error_routine (fatal = %1): %2" ).arg( fatal ).arg( msg ) );
395399

396400
error_message = msg;

0 commit comments

Comments
 (0)