aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/java.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-08-21 23:27:29 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2021-08-22 12:49:11 +0300
commit5a7b8d86d0c455680096d47cb87f0de08c0954ac (patch)
treee3a18b74e1044206014650f4657a80bb7d40579e /mesonbuild/modules/java.py
parentdb04a3f5f212209d9c9656735480d5ec6589794f (diff)
downloadmeson-5a7b8d86d0c455680096d47cb87f0de08c0954ac.zip
meson-5a7b8d86d0c455680096d47cb87f0de08c0954ac.tar.gz
meson-5a7b8d86d0c455680096d47cb87f0de08c0954ac.tar.bz2
use a more informative error message for invoking meson in a subdir
Explicitly mention that the project definition is invalid, and clarify that project is `project()` -- a function. Also try to walk the directory tree upward, and if there are parent meson.build files, just say this isn't the project root, and "maybe you meant to run meson there instead?" This won't catch calls to subdir('foo/bar') but we can't be perfect, only better than before and catch the *majority* of such cases, and hopefully it's a lot more clear if meson protests that the project is "invalid, there is no project() function", where the user should look for a potential solution. Fixes #3426
Diffstat (limited to 'mesonbuild/modules/java.py')
0 files changed, 0 insertions, 0 deletions