• Kai Willadsen's avatar
    filediff: Add a helper for showing user-criticial errors · db57bf5b
    Kai Willadsen authored
    The idea behind this decorator is that it should be used with functions
    where failure is important to the user (and may not be obvious
    otherwise). The only current use is on save, where it's possible to hit
    a traceback and have the callback handling crash out, but other than a
    log message or traceback on the command line... the user may not notice
    anything.
    
    This is made necessary by the GTK+/pygobject philosophy (which is
    generally extremely good) of treating errors of this kind as non-fatal.
    We also want it to not be fatal in this case, but... the user needs to
    know if they tried to save a file and it didn't work.
    
    On the other hand, if they tried to e.g., go to the next diff and we
    messed something up and didn't go to the next diff, (a) they'd notice
    and (b) showing them a modal dialog would be even more annoying than
    the actual error.
    db57bf5b
Name
Last commit
Last update
bin Loading commit data...
data Loading commit data...
help Loading commit data...
meld Loading commit data...
po Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
COPYING Loading commit data...
MANIFEST.in Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
appveyor.yml Loading commit data...
dev-requirements.txt Loading commit data...
maint Loading commit data...
meld.1 Loading commit data...
meld.doap Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
setup_win32.py Loading commit data...