Added colour support to the error messages.