changed naming of error function in Config