mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[mcp] Fix bailout loc
Use the correct loc line numbers and not [Object:object]
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user