diff options
author | Bob Arnson <bob@firegiant.com> | 2020-03-31 19:31:25 -0400 |
---|---|---|
committer | Bob Arnson <bob@firegiant.com> | 2020-03-31 19:33:37 -0400 |
commit | 4ebc31a7c0bfaa1901065fa588b487027a1268f9 (patch) | |
tree | 6ad6a9e3491c6830e1187e153a66be147a40b881 | |
parent | afaa41df8ac183e25051199ff8e993fa81cce6e2 (diff) | |
download | wix-4ebc31a7c0bfaa1901065fa588b487027a1268f9.tar.gz wix-4ebc31a7c0bfaa1901065fa588b487027a1268f9.tar.bz2 wix-4ebc31a7c0bfaa1901065fa588b487027a1268f9.zip |
Minor tweaks to make debugging easier.
-rw-r--r-- | src/WixToolset.Data/Tuples/WixSimpleReferenceTuple.cs | 2 | ||||
-rw-r--r-- | src/WixToolset.Data/WixOutput.cs | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/WixSimpleReferenceTuple.cs b/src/WixToolset.Data/Tuples/WixSimpleReferenceTuple.cs index 2964cfb2..abc53b3a 100644 --- a/src/WixToolset.Data/Tuples/WixSimpleReferenceTuple.cs +++ b/src/WixToolset.Data/Tuples/WixSimpleReferenceTuple.cs | |||
@@ -20,6 +20,7 @@ namespace WixToolset.Data | |||
20 | namespace WixToolset.Data.Tuples | 20 | namespace WixToolset.Data.Tuples |
21 | { | 21 | { |
22 | using System; | 22 | using System; |
23 | using System.Diagnostics; | ||
23 | 24 | ||
24 | public enum WixSimpleReferenceTupleFields | 25 | public enum WixSimpleReferenceTupleFields |
25 | { | 26 | { |
@@ -27,6 +28,7 @@ namespace WixToolset.Data.Tuples | |||
27 | PrimaryKeys, | 28 | PrimaryKeys, |
28 | } | 29 | } |
29 | 30 | ||
31 | [DebuggerDisplay("{SymbolicName}")] | ||
30 | public class WixSimpleReferenceTuple : IntermediateTuple | 32 | public class WixSimpleReferenceTuple : IntermediateTuple |
31 | { | 33 | { |
32 | public WixSimpleReferenceTuple() : base(TupleDefinitions.WixSimpleReference, null, null) | 34 | public WixSimpleReferenceTuple() : base(TupleDefinitions.WixSimpleReference, null, null) |
diff --git a/src/WixToolset.Data/WixOutput.cs b/src/WixToolset.Data/WixOutput.cs index 1810862a..a3326b0b 100644 --- a/src/WixToolset.Data/WixOutput.cs +++ b/src/WixToolset.Data/WixOutput.cs | |||
@@ -206,6 +206,11 @@ namespace WixToolset.Data | |||
206 | { | 206 | { |
207 | var entry = this.archive.GetEntry(name); | 207 | var entry = this.archive.GetEntry(name); |
208 | 208 | ||
209 | if (entry == null) | ||
210 | { | ||
211 | throw new ArgumentOutOfRangeException(nameof(name)); | ||
212 | } | ||
213 | |||
209 | return entry.Open(); | 214 | return entry.Open(); |
210 | } | 215 | } |
211 | 216 | ||