[jhbuild] commands: change the error message on command not found



commit d1acc7575ba78b6caeffe87073f14cb8583c1798
Author: Dan Winship <danw gnome org>
Date:   Wed Oct 5 12:03:31 2011 -0400

    commands: change the error message on command not found
    
    to make it more obvious that it's complaining about not finding a
    jhbuild sub-command as opposed to a command-line command
    
    https://bugzilla.gnome.org/show_bug.cgi?id=660995

 jhbuild/commands/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/commands/__init__.py b/jhbuild/commands/__init__.py
index 53d64d4..4554612 100644
--- a/jhbuild/commands/__init__.py
+++ b/jhbuild/commands/__init__.py
@@ -115,7 +115,7 @@ def run(command, config, args, help):
         except ImportError:
             pass
     if command not in _commands:
-        raise FatalError(_('command not found'))
+        raise FatalError(_('no such command (did you mean "jhbuild run %s"?)' % command))
 
     command_class = _commands[command]
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]