[meld: 2/4] Better error message when an action is attempted with no chunk
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld: 2/4] Better error message when an action is attempted with no chunk
- Date: Sat, 15 Aug 2020 00:03:26 +0000 (UTC)
commit d3feba537d0bcb818e4a0c33589dac52e85e1906
Author: Anatoli Babenia <anatoli rainforce org>
Date: Sat Aug 8 07:10:09 2020 +0300
Better error message when an action is attempted with no chunk
meld/filediff.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index 0a6a73ab..55c19f45 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -822,8 +822,8 @@ class FileDiff(Gtk.VBox, MeldDoc):
valid_panes = list(range(0, self.num_panes))
if src not in valid_panes or dst not in valid_panes:
raise ValueError("Action was taken on invalid panes")
- if self.num_panes > 2 and self.cursor.chunk is None:
- raise ValueError("Action chunk taken from passive pane")
+ if self.cursor.chunk is None:
+ raise ValueError("Action was taken without chunk")
chunk = self.linediffer.get_chunk(self.cursor.chunk, src, dst)
if chunk is None:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]