Pooja/Melanie |#3700| Adding error message for unmatched end