diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-05-13 13:35:19 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-05-13 15:28:00 +1000 |
| commit | a4cc6c64cb94279daeef2ab14e6319105806c053 (patch) | |
| tree | 517db66eddb99c9b7c26c68a11364fef7c7a70a8 /src | |
| parent | c7a1b6b6ea12b3f231d3d8f83590bda74b9284e5 (diff) | |
| download | wix-a4cc6c64cb94279daeef2ab14e6319105806c053.tar.gz wix-a4cc6c64cb94279daeef2ab14e6319105806c053.tar.bz2 wix-a4cc6c64cb94279daeef2ab14e6319105806c053.zip | |
Wrap wixnative.exe FileNotFoundException in PlatformNotSupportedException
Diffstat (limited to 'src')
| -rw-r--r-- | src/WixToolset.Core.Native/WixNativeExe.cs | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |||
| 105 | 105 | ||
| 106 | if (!found) | 106 | if (!found) |
| 107 | { | 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)); | ||
| 109 | } | 111 | } |
| 110 | 112 | ||
| 111 | PathToWixNativeExe = path; | 113 | PathToWixNativeExe = path; |
