Commit db5d2c41 authored by Stefan Behnel's avatar Stefan Behnel

Clarify error message.

parent 325641c5
...@@ -747,7 +747,7 @@ class CFuncDeclaratorNode(CDeclaratorNode): ...@@ -747,7 +747,7 @@ class CFuncDeclaratorNode(CDeclaratorNode):
and not (exc_val_type == PyrexTypes.c_char_type and not (exc_val_type == PyrexTypes.c_char_type
and self.exception_value.value == '*')): and self.exception_value.value == '*')):
error(self.exception_value.pos, error(self.exception_value.pos,
"Exception value must be a Python exception or cdef function with no arguments or *.") "Exception value must be a Python exception, or C++ function with no arguments, or *.")
exc_val = self.exception_value exc_val = self.exception_value
else: else:
self.exception_value = self.exception_value.analyse_types(env).coerce_to( self.exception_value = self.exception_value.analyse_types(env).coerce_to(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment