fixed #179, error function is no configurable