diff options
author | Bob Arnson <bob@firegiant.com> | 2021-03-07 17:37:56 -0500 |
---|---|---|
committer | Bob Arnson <bob@firegiant.com> | 2021-03-07 17:54:48 -0500 |
commit | 24082aafc87c9cc3ed22749e6b21d80e0d3e6ced (patch) | |
tree | a871c6b5d5e6dcb52e94e86891fd35428c4fc5e2 /src/WixToolset.Core | |
parent | 722ffb41bb83879d3e086b6faffd45ee38c5a5b6 (diff) | |
download | wix-24082aafc87c9cc3ed22749e6b21d80e0d3e6ced.tar.gz wix-24082aafc87c9cc3ed22749e6b21d80e0d3e6ced.tar.bz2 wix-24082aafc87c9cc3ed22749e6b21d80e0d3e6ced.zip |
Improve missing entry section error message.
Fixes https://github.com/wixtoolset/issues/issues/5886
Diffstat (limited to 'src/WixToolset.Core')
-rw-r--r-- | src/WixToolset.Core/Linker.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/WixToolset.Core/Linker.cs b/src/WixToolset.Core/Linker.cs index 3281cbd0..f5461bbc 100644 --- a/src/WixToolset.Core/Linker.cs +++ b/src/WixToolset.Core/Linker.cs | |||
@@ -106,7 +106,14 @@ namespace WixToolset.Core | |||
106 | // Must have found the entry section by now. | 106 | // Must have found the entry section by now. |
107 | if (null == find.EntrySection) | 107 | if (null == find.EntrySection) |
108 | { | 108 | { |
109 | throw new WixException(ErrorMessages.MissingEntrySection(this.Context.ExpectedOutputType.ToString())); | 109 | if (this.Context.ExpectedOutputType == OutputType.IntermediatePostLink || this.Context.ExpectedOutputType == OutputType.Unknown) |
110 | { | ||
111 | throw new WixException(ErrorMessages.MissingEntrySection()); | ||
112 | } | ||
113 | else | ||
114 | { | ||
115 | throw new WixException(ErrorMessages.MissingEntrySection(this.Context.ExpectedOutputType.ToString())); | ||
116 | } | ||
110 | } | 117 | } |
111 | 118 | ||
112 | // Add the missing standard action and directory symbols. | 119 | // Add the missing standard action and directory symbols. |