Do not print cancelled errors

This commit is contained in:
Jesse van den Kieboom 2015-12-23 01:03:48 +01:00
parent 14debb7729
commit d578ad0b25

View file

@ -383,7 +383,11 @@ class Gitg.DiffViewFile : Gtk.Grid
}
catch (Error e)
{
stderr.printf(@"ERROR: failed to load $(file.get_path()) for highlighting: $(e.message)\n");
if (!cancellable.is_cancelled())
{
stderr.printf(@"ERROR: failed to load $(file.get_path()) for highlighting: $(e.message)\n");
}
return null;
}