[ 
https://issues.apache.org/jira/browse/KARAF-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jamie goodyear closed KARAF-158.
--------------------------------


> better display of errors when running a non-osgi command line outside of the 
> shell
> ----------------------------------------------------------------------------------
>
>                 Key: KARAF-158
>                 URL: https://issues.apache.org/jira/browse/KARAF-158
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-shell
>            Reporter: james strachan
>             Fix For: 2.1.0
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to