From a4cc6c64cb94279daeef2ab14e6319105806c053 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Wed, 13 May 2020 13:35:19 +1000 Subject: Wrap wixnative.exe FileNotFoundException in PlatformNotSupportedException --- src/WixToolset.Core.Native/WixNativeExe.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/WixToolset.Core.Native/WixNativeExe.cs b/src/WixToolset.Core.Native/WixNativeExe.cs index 2ea5146e..325fa18f 100644 --- a/src/WixToolset.Core.Native/WixNativeExe.cs +++ b/src/WixToolset.Core.Native/WixNativeExe.cs @@ -105,7 +105,9 @@ namespace WixToolset.Core.Native if (!found) { - throw new FileNotFoundException($"Could not find internal piece of WiX Toolset at: {possiblePaths}", WixNativeExeFileName); + throw new PlatformNotSupportedException( + $"Could not find platform specific '{WixNativeExeFileName}'", + new FileNotFoundException($"Could not find internal piece of WiX Toolset from: {possiblePaths}", WixNativeExeFileName)); } PathToWixNativeExe = path; -- cgit v1.2.3-55-g6feb