"He took me down, and tied the placard, which was neatly constructed for the purpose, on my shoulders like a knapsack; and wherever I went, afterwards, I had the consolation of carrying it. What I suffered from that placard, nobody can imagine."
(David Copperfield By Charles Dickens)
I understand the general meaning and usage of "consolation", but not in the above example. So I appreciate your help.