diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-01-06 15:02:15 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-01-07 19:21:21 +0200 |
commit | 17c435869ca96141d3fecc55318a957122d86601 (patch) | |
tree | 82040849335397b789eae656d2b0bbde42195cd4 | |
parent | fd66692f73efb80783172b9d346ae4a5b6b6fa6d (diff) | |
download | meson-17c435869ca96141d3fecc55318a957122d86601.zip meson-17c435869ca96141d3fecc55318a957122d86601.tar.gz meson-17c435869ca96141d3fecc55318a957122d86601.tar.bz2 |
Print problem text in error message. Closes #2882.
-rw-r--r-- | mesonbuild/backend/ninjabackend.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 1057892..85ed232 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -42,8 +42,12 @@ def ninja_quote(text): for char in ('$', ' ', ':'): text = text.replace(char, '$' + char) if '\n' in text: - raise MesonException('Ninja does not support newlines in rules. ' - 'Please report this error with a test case to the Meson bug tracker.') + errmsg = '''Ninja does not support newlines in rules. The content was: + +%s + +Please report this error with a test case to the Meson bug tracker.''' % text + raise MesonException(errmsg) return text |