Fix bug in error string formatting.