If msg is not NULL, the string pointed to by msg, a colon, and a blank are printed before the error message.
If msg is not NULL, the string pointed to by msg, a colon, and a blank are printed before the error message.