raise an TemplateSyntaxError exception with an argument string "Named cycle '%s' does not exist", where '%s' is replaced with name.
raise TemplateSyntaxError ( "Named cycle '%s' does not exist" % name )