Error func now takes a string