added favorite language trick __FUNCTION__ to error case