Upgraded msg(...) to support WARNINGS as well as ERRORS.