Sketch is open (revolve)

Hello ,

when trying to revole a line to create a pipe it says "sketch is open" how do i solve the problem ?