diff --git a/Code/Common/otbPersistentImageToOGRLayerFilter.txx b/Code/Common/otbPersistentImageToOGRLayerFilter.txx
index 53df8c0d32e41d505ed8cdce642417eba282fc17..ab6c9416735fad818c7a0a82eded33696a9ce0a4 100644
--- a/Code/Common/otbPersistentImageToOGRLayerFilter.txx
+++ b/Code/Common/otbPersistentImageToOGRLayerFilter.txx
@@ -109,7 +109,9 @@ PersistentImageToOGRLayerFilter<TImage>
       {
       itkExceptionMacro(<<"Input projection ref is not valid");
       }
-    itkExceptionMacro(<<"Spatial reference of input image and target layer do not match!");
+    itkExceptionMacro(<<"Spatial reference of input image and target layer do not match! "<< std::endl
+                      << "Input image : "<< this->GetInput()->GetProjectionRef()<< std::endl
+                      << "Target layer : "<<m_OGRLayer.GetProjectionRef());
     }
 }