Skip to content
Permalink
Browse files

Fix typo in error message (and related tests)

  • Loading branch information
elpaso committed Jan 24, 2019
1 parent 3eb388a commit 33788c9416e83418f8273e799278dd797cb9e466
@@ -393,7 +393,7 @@ namespace QgsWfs
if ( field.constraints().constraints() & QgsFieldConstraints::Constraint::ConstraintNotNull )
{
action.error = true;
action.errorMsg = QStringLiteral( "NOT NULL constraint error error on layer '%1', field '%2'" ).arg( typeName, field.name() );
action.errorMsg = QStringLiteral( "NOT NULL constraint error on layer '%1', field '%2'" ).arg( typeName, field.name() );
vlayer->rollBack();
break;
}
@@ -515,7 +515,7 @@ def _round_trip(value, field, version='1.1.0'):
self.assertTrue(b'<ERROR/>' in body, body)
else:
self.assertTrue(b'<TotalUpdated>0</TotalUpdated>' in body)
self.assertTrue(b'<Message>NOT NULL constraint error error on layer \'cdb_lines\', field \'name\'</Message>' in body)
self.assertTrue(b'<Message>NOT NULL constraint error on layer \'cdb_lines\', field \'name\'</Message>' in body, body)


if __name__ == '__main__':
Binary file not shown.

0 comments on commit 33788c9

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