diff --git a/Modules/Core/VectorDataBase/src/otbVectorDataKeywordlist.cxx b/Modules/Core/VectorDataBase/src/otbVectorDataKeywordlist.cxx index c4989caf6cd548ea38df154e410704df6f841a39..9b5463d604ad411ba07a2c4dfc6804b91e07d2fc 100644 --- a/Modules/Core/VectorDataBase/src/otbVectorDataKeywordlist.cxx +++ b/Modules/Core/VectorDataBase/src/otbVectorDataKeywordlist.cxx @@ -118,9 +118,9 @@ VectorDataKeywordlist } default: { - itkExceptionMacro( - << "This type (" << m_FieldList[i].first->GetType() << - ") is not handled (yet) by GetFieldAsString(), please request for it"); + itkExceptionMacro( + << "Type of field " << m_FieldList[i].first->GetNameRef() << " (" << m_FieldList[i].first->GetType() << + ") is not handled (yet) by GetFieldAsString(), please request for it"); } } } @@ -155,9 +155,9 @@ VectorDataKeywordlist } default: { - itkExceptionMacro( - << "This type (" << m_FieldList[i].first->GetType() << - ") is not handled (yet) by GetFieldAsDouble(), please request for it"); + itkExceptionMacro( + << "Type of field " << m_FieldList[i].first->GetNameRef() << " (" << m_FieldList[i].first->GetType() << + ") is not handled (yet) by GetFieldAsDouble(), please request for it"); } } } @@ -208,7 +208,7 @@ VectorDataKeywordlist default: { itkExceptionMacro( - << "This type (" << m_FieldList[i].first->GetType() << + << "Type of field " << m_FieldList[i].first->GetNameRef() << " (" << m_FieldList[i].first->GetType() << ") is not handled (yet) by GetFieldAsInt(), please request for it"); } }