fixed bug in calling non-existent error function instead of warning