Add context to AbstractClient rawCall errors

Summary: Attempting to fix T146503217. There is no context to the error so this should make it easier in the future. In the MID it says that the layout plugin was selected i made sure to handle any promise rejections in that plugin

Reviewed By: passy

Differential Revision: D44302939

fbshipit-source-id: 987e2c4efd2dc47d2e032d1b21f90458ec5a2df5
This commit is contained in:
Luke De Feo
2023-03-24 04:28:58 -07:00
committed by Facebook GitHub Bot
parent c158177ea6
commit 77905f30c8
2 changed files with 8 additions and 3 deletions

View File

@@ -108,7 +108,9 @@ export default class Inspector extends Component<Props, State> {
label: 'Focus',
click: (id: ElementID) => {
if (this.props.client.isConnected) {
this.props.client.call('onRequestAXFocus', {id});
this.props.client
.call('onRequestAXFocus', {id})
.catch((e) => console.warn('Unable to request AX focus', e));
}
},
},