[QGIS Commit] r12903 - trunk/qgis/src/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon Feb 8 18:48:21 EST 2010


Author: jef
Date: 2010-02-08 18:48:21 -0500 (Mon, 08 Feb 2010)
New Revision: 12903

Modified:
   trunk/qgis/src/core/qgsvectorfilewriter.cpp
Log:
include projection error in vector file writer error message

Modified: trunk/qgis/src/core/qgsvectorfilewriter.cpp
===================================================================
--- trunk/qgis/src/core/qgsvectorfilewriter.cpp	2010-02-08 23:46:35 UTC (rev 12902)
+++ trunk/qgis/src/core/qgsvectorfilewriter.cpp	2010-02-08 23:48:21 UTC (rev 12903)
@@ -72,7 +72,7 @@
     QgsFieldMap::const_iterator fldIt;
     for ( fldIt = fields.begin(); fldIt != fields.end(); ++fldIt )
     {
-      QString name = fldIt.value().name().left(10);
+      QString name = fldIt.value().name().left( 10 );
       if ( fieldNames.contains( name ) )
       {
         mErrorMessage = QObject::tr( "trimming attribute name '%1' to ten significant characters produces duplicate column name." )
@@ -451,10 +451,10 @@
         delete ct;
         delete writer;
 
-	QString msg = QObject::tr("Failed to transform a point while drawing a feature of type '%1'. Writing stopped.")
-                        .arg( fet.typeName() );
+        QString msg = QObject::tr( "Failed to transform a point while drawing a feature of type '%1'. Writing stopped. (Exception: %2)" )
+                      .arg( fet.typeName() ).arg( e.what() );
         QgsLogger::warning( msg );
-	if( errorMessage )
+        if ( errorMessage )
           *errorMessage = msg;
 
         return ErrProjection;



More information about the QGIS-commit mailing list