aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2023-02-16 18:43:53 -0500
committerBob Arnson <github@bobs.org>2023-02-16 19:34:29 -0500
commita8a0dde828c474067cb92fd9cfec85372ab4160e (patch)
treebc2840674e1079a042affe6c625ea7d6c480bb1c
parent9b2edf15154381f76360d91da31bad6978ffaa1c (diff)
downloadwix-a8a0dde828c474067cb92fd9cfec85372ab4160e.tar.gz
wix-a8a0dde828c474067cb92fd9cfec85372ab4160e.tar.bz2
wix-a8a0dde828c474067cb92fd9cfec85372ab4160e.zip
Handle WixException with null message.
-rw-r--r--src/wix/wix/Program.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/wix/wix/Program.cs b/src/wix/wix/Program.cs
index d1818df0..e4ee7ba1 100644
--- a/src/wix/wix/Program.cs
+++ b/src/wix/wix/Program.cs
@@ -54,9 +54,18 @@ namespace WixToolset.Tools
54 } 54 }
55 catch (WixException e) 55 catch (WixException e)
56 { 56 {
57 listener.Write(e.Error); 57 if (e.Error != null)
58 {
59 listener.Write(e.Error);
58 60
59 return e.Error.Id; 61 return e.Error.Id;
62 }
63 else
64 {
65 listener.Write(e.Message);
66
67 return e.HResult;
68 }
60 } 69 }
61 catch (Exception e) 70 catch (Exception e)
62 { 71 {