Fix ANSI escape in warning messages

Seems to have been broken by accident in 7d1ddae58e465a1708967c9fee651c33819969c6.