Set our error function if we got an function argument