common: report all possible valid paths for invalid ./build-baremetal target

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-10-16 00:00:01 +00:00
parent e70e433702
commit fa167c6c9a

View File

@@ -1094,8 +1094,8 @@ lunch aosp_{}-eng
is_subpath = True
if not is_subpath:
raise Exception(
'Can only accept targets inside {}, given: {}'.format(
parent,
'Can only accept targets inside:\n{}\nGiven: {}'.format(
'\n'.join(parents),
subpath
)
)