Allow assert_current_node to detect for an error instead