Skip to content

Commit

Permalink
add fusebox flag to error case of launch debugger event (facebook#44696)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#44696

Changelog: [Internal]

Add `prefers_fusebox_frontend` annotation to the error case for the launch debugger event

Reviewed By: hoxyq

Differential Revision: D57866634

fbshipit-source-id: fcd3655539c936d9965b0c79a47b1b58bb9a4e48
  • Loading branch information
EdmondChuiHW authored and facebook-github-bot committed May 29, 2024
1 parent dc3a530 commit 82a3bb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export default function openDebuggerMiddleware({
launchType,
status: 'error',
error: e,
prefersFuseboxFrontend: useFuseboxEntryPoint ?? false,
});
return;
}
Expand Down
1 change: 1 addition & 0 deletions packages/dev-middleware/src/types/EventReporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type SuccessResult<Props: {...} | void = {}> = {
type ErrorResult<ErrorT = mixed> = {
status: 'error',
error: ErrorT,
prefersFuseboxFrontend?: ?boolean,
};

type CodedErrorResult<ErrorCode: string> = {
Expand Down

0 comments on commit 82a3bb8

Please sign in to comment.