Skip to content

Commit 3c75bf2

Browse files
authored
[mcp] Fix bailout loc (facebook#32931)
Use the correct loc line numbers and not [Object:object] --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32931). * facebook#32932 * __->__ facebook#32931 * facebook#32930 * facebook#32929 * facebook#32928
1 parent 3e04b2a commit 3c75bf2

File tree

1 file changed

+1
-1
lines changed
  • compiler/packages/react-mcp-server/src

1 file changed

+1
-1
lines changed

compiler/packages/react-mcp-server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ server.tool(
283283
if (typeof err.loc !== 'symbol') {
284284
return {
285285
type: 'text' as const,
286-
text: `React Compiler bailed out: ${err.message}@${err.loc.start}:${err.loc.end}`,
286+
text: `React Compiler bailed out:\n\n${err.message}@${err.loc.start.line}:${err.loc.end.line}`,
287287
};
288288
}
289289
return null;

0 commit comments

Comments
 (0)