Description
when using the karaf shell outside of osgi and outside of the shell itself the error report could be nicer. e.g. when running the Main inside Scalate with an incomplete command...
scalate$ bin/scalate run
Exception in thread "main" java.lang.IllegalArgumentException: Argument template is required
at org.apache.felix.gogo.commands.basic.DefaultActionPreparator.prepare(DefaultActionPreparator.java:186)
at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:34)
at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:229)
at org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:162)
at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:101)
at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:79)
at org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)
at org.apache.karaf.shell.console.Main.main(Main.java:129)
it would be good to behave like the shell does; printing nicely that the 'template' argument is required etc.