def METHOD_NAME(self) -> None:
    """Make it easier to understand buck errors resulting from bad globs"""
    root = self.mkdtemp()
    os.mkdir(os.path.join(root, "mydir"))
    self.watchmanCommand("watch", root)
    with self.assertRaises(pywatchman.WatchmanError) as ctx:
        self.watchmanCommand("query", root, {"glob": ["//fbandroid/*.cpp"]})
    self.assertIn(
        "QueryParseError: failed to parse query: "
        "glob `//fbandroid/*.cpp` is an absolute path.  "
        "All globs must be relative paths",
        str(ctx.exception),
    )