Escapes the right error message string.

_Why_

This fixes errors not being picked up as errors in jenkins.

- [ ] Check (you can test it if you want, two changes...)