/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to olive/errors.py

  • Committer: Jelmer Vernooij
  • Date: 2007-02-01 15:50:40 UTC
  • Revision ID: jelmer@samba.org-20070201155040-3hq4mfbxs99kzazy
add framework for tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import bzrlib.errors as errors
18
18
 
19
 
from olive.dialog import error_dialog
 
19
from dialog import error_dialog
20
20
 
21
21
def show_bzr_error(unbound):
22
22
    """Decorator that shows bazaar exceptions. """
50
50
        except errors.NoSuchFile:
51
51
            error_dialog(_("No diff output"),
52
52
                         _("The selected file hasn't changed."))
53
 
        except errors.NoSuchRevision:
54
 
                error_dialog(_('No such revision'),
55
 
                             _("The revision you specified doesn't exist."))
56
 
        except errors.FileExists:
57
 
                error_dialog(_('Target already exists'),
58
 
                             _("Target directory already exists. Please select another target."))
59
53
        except errors.AlreadyBranchError, errmsg:
60
54
            error_dialog(_('Directory is already a branch'),
61
55
                         _('The current directory (%s) is already a branch.\nYou can start using it, or initialize another directory.') % errmsg)