A first stab at error messages. Not as bad as I thought!