/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:
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
17
import bzrlib.errors as errors
 
18
 
18
19
from dialog import error_dialog
19
20
 
20
21
def show_bzr_error(unbound):
49
50
        except errors.NoSuchFile:
50
51
            error_dialog(_("No diff output"),
51
52
                         _("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."))
58
53
        except errors.AlreadyBranchError, errmsg:
59
54
            error_dialog(_('Directory is already a branch'),
60
55
                         _('The current directory (%s) is already a branch.\nYou can start using it, or initialize another directory.') % errmsg)