Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log error code from hermes.dll load failure #14236

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

danielayala94
Copy link
Contributor

@danielayala94 danielayala94 commented Jan 2, 2025

Description

Surface an error code indicating why hermes.dll didn't load.

Type of Change

Erase all that don't apply.

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Why

We currently are seeing cases where hermes.dll is not loaded. However, Watson cabs can't tell what is the root cause of the loading failure.

What

Added a CRASH_ON_ERROR check right after hermes.dll loading attempt, calling GetLastError() to retrieve the LoadLibrary Win32 API error.

Screenshots

N/A

Testing

Ran run-windows, both in a successful scenario and a failure scenario (in this case, intentionally removed hermes.dll from the app files, then verified the app crashes at the newly introduced code).

Changelog

No

Add a brief summary of the change to use in the release notes for the next release.

Microsoft Reviewers: Open in CodeFlow

@danielayala94 danielayala94 requested a review from vmoroz January 3, 2025 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant