Add detail when failing to extract containers.
Bob Arnson committed
Feb 28, 2024 at 21:35 UTC
1a1da6f105baf47babf292ea71a8218868071c5a
2 files changed
+4
-4
src/wix/WixToolset.Core.Burn/BurnBackendWarnings.cs
+2
-2
@@ -26,9 +26,9 @@ namespace WixToolset.Core.Burn
26
return Message(sourceLineNumbers, Ids.EmptyContainer, "The Container '{0}' is being ignored because it doesn't have any payloads.", containerId);
27
}
28
29
- public static Message FailedToExtractAttachedContainers(SourceLineNumber sourceLineNumbers)
29
+ public static Message FailedToExtractAttachedContainers(SourceLineNumber sourceLineNumbers, string message)
30
{
31
- return Message(sourceLineNumbers, Ids.FailedToExtractAttachedContainers, "Failed to extract attached container. This most often happens when extracting a stripped bundle from the package cache, which is not supported.");
31
+ return Message(sourceLineNumbers, Ids.FailedToExtractAttachedContainers, "Failed to extract attached container. This most often happens when extracting a stripped bundle from the package cache, which is not supported. Detail: {0}", message);
32
}
33
34
public static Message HiddenBundleNotSupported(SourceLineNumber sourceLineNumbers, string packageId)
src/wix/WixToolset.Core.Burn/CommandLine/ExtractSubcommand.cs
+2
-2
@@ -72,9 +72,9 @@ namespace WixToolset.Core.Burn.CommandLine
72
reader.ExtractAttachedContainers(this.ExtractContainersPath, this.IntermediateFolder);
73
}
74
}
75
- catch
75
+ catch (Exception e)
76
{
77
- this.Messaging.Write(BurnBackendWarnings.FailedToExtractAttachedContainers(new SourceLineNumber(this.ExtractContainersPath)));
77
+ this.Messaging.Write(BurnBackendWarnings.FailedToExtractAttachedContainers(new SourceLineNumber(this.ExtractContainersPath), e.Message));
78
}
79
}
80
}