@joebigelow / wix-1 / commits / a4cc6c64

Wrap wixnative.exe FileNotFoundException in PlatformNotSupportedException

Sean Hall committed May 13, 2020 at 13:35 UTC a4cc6c64cb94279daeef2ab14e6319105806c053
1 file changed +3 -1
src/WixToolset.Core.Native/WixNativeExe.cs
+3 -1
@@ -105,7 +105,9 @@ namespace WixToolset.Core.Native
105
106 if (!found)
107 {
108 - throw new FileNotFoundException($"Could not find internal piece of WiX Toolset at: {possiblePaths}", WixNativeExeFileName);
108 + throw new PlatformNotSupportedException(
109 + $"Could not find platform specific '{WixNativeExeFileName}'",
110 + new FileNotFoundException($"Could not find internal piece of WiX Toolset from: {possiblePaths}", WixNativeExeFileName));
111 }
112
113 PathToWixNativeExe = path;