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