/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

merge command-not-found core code

Show diffs side-by-side

added added

removed removed

Lines of Context:
2624
2624
        self.timezone = timezone
2625
2625
 
2626
2626
 
 
2627
class CommandAvailableInPlugin(StandardError):
 
2628
    
 
2629
    internal_error = False
 
2630
 
 
2631
    def __init__(self, cmd_name, plugin_metadata, provider):
 
2632
        
 
2633
        self.plugin_metadata = plugin_metadata
 
2634
        self.cmd_name = cmd_name
 
2635
        self.provider = provider
 
2636
 
 
2637
    def __str__(self):
 
2638
 
 
2639
        _fmt = ('"%s" is not a standard bzr command. \n' 
 
2640
                'However, the following official plugin provides this command: %s\n'
 
2641
                'You can install it by going to: %s'
 
2642
                % (self.cmd_name, self.plugin_metadata['name'], 
 
2643
                    self.plugin_metadata['url']))
 
2644
 
 
2645
        return _fmt
 
2646
 
 
2647
 
 
2648
class NoPluginAvailable(BzrError):
 
2649
    pass    
 
2650
 
 
2651
 
2627
2652
class NotATerminal(BzrError):
2628
2653
 
2629
2654
    _fmt = 'Unable to ask for a password without real terminal.'