- Issue created by @murz
- Merge request !21Issue #3540803: [DB] Provide fallback rendering for broken JSONPath exceptions β (Merged) created by murz
- π¦π²Armenia murz Yerevan, Armenia
Thank you for testing! Added unit tests and merged.
Now, if you put a broken JSONPath expression, like $.metadata:output
instead of $.metadata.output
to the field settings in Views, you will see the full screen exception like this:
The website encountered an unexpected error. Try again later.
Flow\JSONPath\JSONPathException: Unable to parse token metadata:output in expression: .metadata:output in Flow\JSONPath\JSONPathLexer->createToken() (line 228 of vendor/softcreatr/jsonpath/src/JSONPathLexer.php).
Would be good to catch this exception and render the exception message as a fallback inline in the Views field value.
Active
1.3
Code
Thank you for testing! Added unit tests and merged.