Fixed exception string formatting

I did not write this code, so this was not my mistake. Credit goes to
Clang for finding this.