Added warnings as well as errors