@samitouri / QOS-React-2 / commits / 3c75bf21dd

[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

lauren committed Apr 16, 2025 at 17:49 UTC 3c75bf21dd2fca130635c5b67b5361f4759a7d29
1 file changed +1 -1
compiler/packages/react-mcp-server/src/index.ts
+1 -1
@@ -283,7 +283,7 @@ server.tool(
283 if (typeof err.loc !== 'symbol') {
284 return {
285 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}`,
287 };
288 }
289 return null;