Skip to content
Permalink
Browse files

include projection error in vector file writer error message

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12903 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Feb 8, 2010
1 parent adf8e0e commit 0929ee8190ffeda5bfb46af386ef422388d42655
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/core/qgsvectorfilewriter.cpp
@@ -72,7 +72,7 @@ QgsVectorFileWriter::QgsVectorFileWriter( const QString& shapefileName,
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 @@ QgsVectorFileWriter::writeAsShapefile( QgsVectorLayer* layer,
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;

0 comments on commit 0929ee8

Please sign in to comment.
You can’t perform that action at this time.