report the offending function call on error