mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
[mcp] Fix bailout loc (#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). * #32932 * __->__ #32931 * #32930 * #32929 * #32928
This commit is contained in:
parent
3e04b2a214
commit
3c75bf21dd
|
|
@ -283,7 +283,7 @@ server.tool(
|
|||
if (typeof err.loc !== 'symbol') {
|
||||
return {
|
||||
type: 'text' as const,
|
||||
text: `React Compiler bailed out: ${err.message}@${err.loc.start}:${err.loc.end}`,
|
||||
text: `React Compiler bailed out:\n\n${err.message}@${err.loc.start.line}:${err.loc.end.line}`,
|
||||
};
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user