[mcp] Fix bailout loc

Use the correct loc line numbers and not [Object:object]
This commit is contained in:
Lauren Tan
2025-04-16 17:39:42 -04:00
parent 21897adfbf
commit 824ef64ebb
@@ -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;