Identify the segment in the sentence which contains a grammatical error.
When I was buying groceries, I was seeing my friend at the market yesterday.
1
buying groceries
2
When I was
3
I was seeing my friend
4
at the market yesterday
Identify the segment in the sentence which contains a grammatical error.