From 6c321358d2aa42fa83233bb2827e35c0a9372f63 Mon Sep 17 00:00:00 2001
From: Victor Poughon <victor.poughon@cnes.fr>
Date: Wed, 6 Mar 2019 14:50:05 +0100
Subject: [PATCH] BUG: fix typo in py error message

---
 Modules/Wrappers/SWIG/src/otbApplication.i | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Modules/Wrappers/SWIG/src/otbApplication.i b/Modules/Wrappers/SWIG/src/otbApplication.i
index 460d25eb09..63c629d99e 100644
--- a/Modules/Wrappers/SWIG/src/otbApplication.i
+++ b/Modules/Wrappers/SWIG/src/otbApplication.i
@@ -831,9 +831,9 @@ class ApplicationProxy(object):
       array = self.NumpyExporterMap[pixT](self,paramKey)
       if array.shape[2] > 1:
         raise ValueError("array.shape[2] > 1\n"
-                         "Output image from application has more than 1 band\n"
-                         "GetImageFromNumpyArray only returns the first band, which will result in a loss of data.\n"
-                         "In this case you must use GetVectorImageFromNumpyArray which is capable of return a 3 dimension image.\n")
+                         "Output image from application has more than 1 band.\n"
+                         "GetImageAsNumpyArray only returns the first band, which will result in a loss of data.\n"
+                         "In this case you must use GetVectorImageAsNumpyArray which can return a 3 dimension image.\n")
       array = array[:,:,0]
       return array
 
-- 
GitLab