shell script to check blank line?

Can someone help to transform the below logic into a shell script, might be easy for some of you.

I have a file with below text, I need if the line has the ":" and the above to it is not a blank line should print " <text>: is incorrect format"

Apple:
vitamin = A
Banana:
vitamin = A

Orange:
vitamin = C

So, If I run the script on above file, it should say Banana: is not a correct format