karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (KARAF-158) better display of errors when running a non-osgi command line outside of the shell
Date Wed, 08 Sep 2010 11:28:33 GMT

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

Guillaume Nodet resolved KARAF-158.
-----------------------------------

    Resolution: Fixed

Committing to https://svn.apache.org/repos/asf/karaf/trunk ...
	M	shell/console/src/main/java/org/apache/karaf/shell/console/Main.java
Committed r994994


> 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: console
>            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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message