add fetch error in fetch fun