changeset 349:3a1380b4428c

OptionParser: improve error message
author David Demelier <markand@malikania.fr>
date Mon, 06 Apr 2015 10:56:40 +0200
parents c4381c345f2d
children 5a1ec6603230
files C++/modules/OptionParser/OptionParser.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/C++/modules/OptionParser/OptionParser.cpp	Sat Apr 04 19:58:48 2015 +0200
+++ b/C++/modules/OptionParser/OptionParser.cpp	Mon Apr 06 10:56:40 2015 +0200
@@ -176,7 +176,7 @@
 		}
 
 		if (!isDefined(*it)) {
-			pack.m_error = "Invalid option";
+			pack.m_error = *it + ": invalid option";
 			return pack;
 		}