diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-03-30 14:46:09 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-03-30 14:46:09 +0300 |
commit | 8d5c51fa553c1607d624f77688538486e4539acd (patch) | |
tree | 0d0c6e42d2b01be9407911ad808529c841bb1153 | |
parent | 3b49b7106b281816fdf99f9d4361e5de0167ead3 (diff) | |
download | meson-8d5c51fa553c1607d624f77688538486e4539acd.zip meson-8d5c51fa553c1607d624f77688538486e4539acd.tar.gz meson-8d5c51fa553c1607d624f77688538486e4539acd.tar.bz2 |
Clarified error message.
-rw-r--r-- | interpreter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interpreter.py b/interpreter.py index ee8eca7..f14e981 100644 --- a/interpreter.py +++ b/interpreter.py @@ -1451,7 +1451,7 @@ class Interpreter(): if self.subproject != '': raise InvalidCode('Global arguments can not be set in subprojects because there is no way to make that reliable.') if self.global_args_frozen: - raise InvalidCode('Tried to set global arguments after they have become immutable.') + raise InvalidCode('Tried to set global arguments after a build target has been declared.\nThis is not permitted. Please declare all global arguments before your targets.') if not 'language' in kwargs: raise InvalidCode('Missing language definition in add_global_arguments') lang = kwargs['language'].lower() |