commit d82e13a1442b9c27a54b908f13bb7d6301c3f812
parent 113debcc0f3fe968c58b60162f6b957b832c7498
Author: Flor Chacón <14323496+florelis@users.noreply.github.com>
Date: Wed, 29 Nov 2023 13:47:40 -0800
Fix pipeline build error (#3937)
This fixes the recent build errors in the pipelines. The compiler was
complaining about re-throwing an exception with `throw e;` instead of
`throw;`, which messes with the stack trace. Presumably it started
because of a tool update in the agents.
This also fixes a compilation error I'm seeing locally from a member not
being initialized.
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/AppInstallerRepositoryCore/CompositeSource.h b/src/AppInstallerRepositoryCore/CompositeSource.h
@@ -59,6 +59,6 @@ namespace AppInstaller::Repository
Source m_installedSource;
std::vector<Source> m_availableSources;
SourceDetails m_details;
- CompositeSearchBehavior m_searchBehavior;
+ CompositeSearchBehavior m_searchBehavior = CompositeSearchBehavior::Installed;
};
}
diff --git a/src/PowerShell/Microsoft.WinGet.Client.Engine/Helpers/AppxModuleHelper.cs b/src/PowerShell/Microsoft.WinGet.Client.Engine/Helpers/AppxModuleHelper.cs
@@ -202,7 +202,7 @@ namespace Microsoft.WinGet.Client.Engine.Helpers
catch (RuntimeException e)
{
this.pwshCmdlet.Write(StreamType.Verbose, $"Failed installing bundle via Add-AppxProvisionedPackage {e}");
- throw e;
+ throw;
}
}
@@ -226,7 +226,7 @@ namespace Microsoft.WinGet.Client.Engine.Helpers
catch (RuntimeException e)
{
this.pwshCmdlet.Write(StreamType.Verbose, $"Failed installing bundle via Add-AppxPackage {e}");
- throw e;
+ throw;
}
}
@@ -391,7 +391,7 @@ namespace Microsoft.WinGet.Client.Engine.Helpers
else
{
this.pwshCmdlet.Write(StreamType.Error, e.ErrorRecord);
- throw e;
+ throw;
}
}
}