Commit ffd56012 authored by Mark Florisson's avatar Mark Florisson

Better diagnostics for invalid directives in with statements

parent d5846784
......@@ -639,7 +639,7 @@ class InterpretCompilerDirectives(CythonTransform, SkipDeclarations):
return False
else:
if directive not in Options.directive_defaults:
error(pos, "Invalid directive.")
error(pos, "Invalid directive: '%s'." % (directive,))
return True
# Set up processing and handle the cython: comments.
......
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