#756: Unhelpful errors from product-scoped commands in console admin
---------------------------+---------------------------
  Reporter:  rjollos       |      Owner:  olemis
      Type:  enhancement   |     Status:  accepted
  Priority:  major         |  Milestone:  Release 9
 Component:  multiproduct  |    Version:
Resolution:                |   Keywords:  console admin
---------------------------+---------------------------

Comment (by olemis):

 Attached patch is aimed at improving error messages when product admin
 commands are executed .

 This is a typical trac-admin session in product context

 {{{#!sh

 $ trac-admin /path/to/trac/env/
 Welcome to trac-admin 1.0.1
 Interactive Trac administration console.
 Copyright (C) 2003-2013 Edgewall Software

 Type:  '?' or 'help' for help on commands.

 Trac [/path/to/trac/env]> product admin default component add c3
 Error: Invalid arguments

 Admin command failed in product : default

 component add <name> <owner>

     Add a new component
 }}}

 Details :

 {{{#!sh
 $ hg qapplied
 t756/t756_r1567795_product_admin_failmsg.diff

 $ hg log -r qparent --template="{svnrev}\n"
 1567795
 }}}

 Open question :

   - Should suggested command be «product admin <prefix> <sub-command>» ?

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/756#comment:3>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Reply via email to