cylc 5/6: syntax error message

Updated to fail and report that it is a cylc 5/6 syntax error.
Fix #1202