Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在对表达式获取结果的时候,这里加上异常处理是不是更友好一些? #137

Open
imhansai opened this issue Jun 2, 2023 · 0 comments

Comments

@imhansai
Copy link

imhansai commented Jun 2, 2023

https://github.com/mouzt/mzt-biz-log/blame/c6dd1b976ce3d49ec70e3cd5163bed5947d4da6a/bizlog-sdk/src/main/java/com/mzt/logapi/starter/support/parse/LogRecordExpressionEvaluator.java#L26

情形:
success 中有多个 spel 表达式,然后手误把#敲成了@,然后出现错误,错误中无法直接定位到表达式。所以有这个疑问。

success 模板:
asin: {{#logEntity.asin}} 国家: {{@logEntity.countryCode}}

报错:
image

虽然根据错误可以看到bean引用,反推使用了@,但是异常中直接给出表达式会不会更友好直观一些呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant