Return-Path: Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: (qmail 46802 invoked from network); 24 Aug 2010 14:34:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Aug 2010 14:34:42 -0000 Received: (qmail 95968 invoked by uid 500); 24 Aug 2010 14:34:41 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 95820 invoked by uid 500); 24 Aug 2010 14:34:40 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 95799 invoked by uid 99); 24 Aug 2010 14:34:39 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Aug 2010 14:34:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Aug 2010 14:34:38 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7OEYG7q021108 for ; Tue, 24 Aug 2010 14:34:16 GMT Message-ID: <17239068.531661282660456039.JavaMail.jira@thor> Date: Tue, 24 Aug 2010 10:34:16 -0400 (EDT) From: "james strachan (JIRA)" To: issues@karaf.apache.org Subject: [jira] Created: (KARAF-158) better display of errors when running a non-osgi command line outside of the shell MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org 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.