changed error message to highlight offending node