/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 errors.py

  • Committer: Jelmer Vernooij
  • Author(s): Chris Lamb
  • Date: 2008-05-01 13:00:15 UTC
  • mto: This revision was merged to the branch mainline in revision 482.
  • Revision ID: jelmer@samba.org-20080501130015-lmn22j03044vqngp
Set suitable FDO categories in .desktop files

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
17
import bzrlib.errors as errors
18
 
 
19
18
from dialog import error_dialog
20
19
 
21
20
def show_bzr_error(unbound):
50
49
        except errors.NoSuchFile:
51
50
            error_dialog(_("No diff output"),
52
51
                         _("The selected file hasn't changed."))
 
52
        except errors.NoSuchRevision:
 
53
                error_dialog(_('No such revision'),
 
54
                             _("The revision you specified doesn't exist."))
 
55
        except errors.FileExists:
 
56
                error_dialog(_('Target already exists'),
 
57
                             _("Target directory already exists. Please select another target."))
53
58
        except errors.AlreadyBranchError, errmsg:
54
59
            error_dialog(_('Directory is already a branch'),
55
60
                         _('The current directory (%s) is already a branch.\nYou can start using it, or initialize another directory.') % errmsg)