pass on function call where err occurred