aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2021-03-07 17:37:56 -0500
committerBob Arnson <bob@firegiant.com>2021-03-07 17:54:48 -0500
commit24082aafc87c9cc3ed22749e6b21d80e0d3e6ced (patch)
treea871c6b5d5e6dcb52e94e86891fd35428c4fc5e2 /src/WixToolset.Core
parent722ffb41bb83879d3e086b6faffd45ee38c5a5b6 (diff)
downloadwix-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.cs9
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.