pgindent: improve error messages

per suggestion from Gurjeet Singh