Task #814
closed
Display specific error in script in GUI
Added by Petr Michal about 7 years ago.
Updated about 7 years ago.
Description
When you try to save uncomplicable script. In application server log you have full stacktrace with error and affected line.
But in GUI is just shor info, that script cannot be comliled. It should show specific problem, which is now in server log.
- Status changed from New to In Progress
I added new error GROOVY_SCRIPT_SYNTAX_VALIDATION and new catch for validate script. This statement catch MultipleCompilationErrorsException and parse from this error message with line and token.
Commit: https://github.com/bcvsolutions/CzechIdMng/commit/e11d7c72501752531d1de41f4fe959b2f7777bbe
Please Petr could you make a review and tests? After you complete this review give this ticket also for feedback to Radek, he check code and style. Thank you.
- Status changed from In Progress to Needs feedback
- Assignee changed from Ondřej Kopr to Petr Michal
- % Done changed from 0 to 90
- Assignee changed from Petr Michal to Radek Tomiška
Radek pleas could you? :)
- Status changed from Needs feedback to Closed
- Assignee changed from Radek Tomiška to Ondřej Kopr
- Target version set to Forsterite (7.6.0)
- % Done changed from 90 to 100
I did review and test, it's nice, thx!
Also available in: Atom
PDF