Fix indenting and improve error message.