Details
-
Improvement
-
Status: Done
-
Major
-
Resolution: Done
-
0.4.2
-
None
Description
When running a bad assignment expression in the REPL, the error message provides no help as to why the expression fails. It only says that the expression fails, which is obvious. This needs to report back to the user the root cause of the assignment expression failing.
[Stellar]>>> p := 0/0 [!] Assignment expression failed java.lang.IllegalArgumentException: Assignment expression failed at org.apache.metron.stellar.common.shell.StellarResult.error(StellarResult.java:115) at org.apache.metron.stellar.common.shell.specials.AssignmentCommand.execute(AssignmentCommand.java:82) at org.apache.metron.stellar.common.shell.DefaultStellarShellExecutor.execute(DefaultStellarShellExecutor.java:252) at org.apache.metron.stellar.common.shell.cli.StellarShell.execute(StellarShell.java:357) at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:53) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
Attachments
Issue Links
- links to