Skip to content

Commit

Permalink
include projection error in vector file writer error message
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12903 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Feb 8, 2010
1 parent adf8e0e commit 0929ee8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/qgsvectorfilewriter.cpp
Expand Up @@ -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." )
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0929ee8

Please sign in to comment.