From bf8ccc5518180fe22fdef125d95e8f20027ccb7b Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Thu, 20 Jan 2022 10:36:45 +0100 Subject: Raise an error if a given vcpkg tool is not found --- bundle.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bundle.lua') diff --git a/bundle.lua b/bundle.lua index 50417f76d..62a0597e9 100644 --- a/bundle.lua +++ b/bundle.lua @@ -82,6 +82,10 @@ local function _find_vcpkg_binary(triple, port, binary) end bin_path = root_dir.."/installed/"..triple.."/tools/"..port.."/"..binary + if not os.isfile(bin_path) then + raise("Unable to locate vcpkg tool "..bin_path) + end + return bin_path end -- cgit v1.2.3