[misc] Fix string format in exception message.