karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "james strachan (JIRA)" <j...@apache.org>
Subject [jira] Created: (KARAF-158) better display of errors when running a non-osgi command line outside of the shell
Date Tue, 24 Aug 2010 14:34:16 GMT
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.2.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