ENH: Better warning and message error handling.