CmdPal: Make debugging extension load errors easier (#41251)

Turns out we didn't log all the HRESULTs for failing to load an
extension. This adds more logging.

It also adds a context command on the log command to make it easier to
get to the log files
This commit is contained in:
Mike Griese
2025-08-26 10:54:58 -05:00
committed by GitHub
parent 8258f2ab6f
commit 11218ea4d8
5 changed files with 39 additions and 11 deletions

View File

@@ -126,6 +126,10 @@ public class ExtensionWrapper : IExtensionWrapper
// We'll just return out nothing.
return;
}
else if (hr.Value != 0)
{
Logger.LogError($"Failed to find {ExtensionDisplayName}: {hr.Value}");
}
// Marshal.ThrowExceptionForHR(hr);
_extensionObject = MarshalInterface<IExtension>.FromAbi((nint)extensionPtr);