Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ianj-als/pypeline.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Johnson <ian.johnson@appliedlanguage.com>2012-10-16 20:12:46 +0400
committerIan Johnson <ian.johnson@appliedlanguage.com>2012-10-16 20:12:46 +0400
commit3fe4cd595741a81e389c7a873b741ce0f8943463 (patch)
tree66097a61fef25df3d5fcdd40c599ec9efa30d7a0
parent8d8fa38938852d4d08fbfe0c60f1ce6ad9eaac83 (diff)
Function arrow choice ValueError now have correct detail message.
-rw-r--r--src/pypeline/core/arrows/function_arrow_choice.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pypeline/core/arrows/function_arrow_choice.py b/src/pypeline/core/arrows/function_arrow_choice.py
index c5ef6a3..a90326b 100644
--- a/src/pypeline/core/arrows/function_arrow_choice.py
+++ b/src/pypeline/core/arrows/function_arrow_choice.py
@@ -74,7 +74,7 @@ class FunctionArrowChoice(ArrowChoice, FunctionArrow):
# +---------------+ +---------------+
def __add__(self, other):
if not isinstance(other, FunctionArrowChoice):
- raise ValueError("Must be a FunctionArrow")
+ raise ValueError("Must be a FunctionArrowChoice")
return self.left() >> other.right()
@@ -88,7 +88,7 @@ class FunctionArrowChoice(ArrowChoice, FunctionArrow):
# +---------------+ +---------------+ +-------------------+
def __or__(self, other):
if not isinstance(other, FunctionArrowChoice):
- raise ValueError("Must be a FunctionArrow")
+ raise ValueError("Must be a FunctionArrowChoice")
def merge(either):
if not isinstance(either, Either):