From c527e4a658a5fda8a13e0da82375ffeba58c703a Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Mon, 18 Jul 2016 02:27:32 +0530 Subject: [PATCH] coredata: Descriptive parser exceptions for UserStringArrayOption --- mesonbuild/coredata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py index dc7973e83..c39750995 100644 --- a/mesonbuild/coredata.py +++ b/mesonbuild/coredata.py @@ -100,10 +100,10 @@ class UserStringArrayOption(UserOption): raise MesonException('Valuestring does not define an array: ' + newvalue) newvalue = eval(newvalue, {}, {}) # Yes, it is unsafe. if not isinstance(newvalue, list): - raise MesonException('String array value is not an array.') + raise MesonException('"{0}" should be a string array, but it is not'.format(str(newvalue))) for i in newvalue: if not isinstance(i, str): - raise MesonException('String array element not a string.') + raise MesonException('String array element "{0}" is not a string.'.format(str(newvalue))) self.value = newvalue # This class contains all data that must persist over multiple