github-actions[bot] opened a new pull request, #71953:
URL: https://github.com/apache/airflow/pull/71953

   The Variables form warns "Invalid JSON" the moment the value looks
   like it might be JSON but doesn't parse. That warning tells the user
   something's wrong but not where, so a typo halfway through a large
   value is still a hunt.
   
   The browser's SyntaxError from JSON.parse already carries the position
   ("Unexpected token ',' at position 42 (line 3 column 12)" on V8,
   similar on Firefox / Safari). Surface it alongside the localized label
   so users can jump straight to the character that broke the parse.
   
   The parser message is emitted by the JS engine and is only ever in
   English — mixing it with a localized label is a compromise, but the
   position info is more valuable than perfect localization here, and no
   browser offers a localized JSON parse error to begin with.
   (cherry picked from commit b5b39ccd8f044b633e6b0d7db9100d2ad1e09661)
   
   Co-authored-by: Pierre Jeambrun <[email protected]>
   closes: #68262


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to