Use t.Errorf instead of t.Println

Silly thinko in 4c2445c5c31b5098f6d8355036.