Fixed onError signature - updated to 2.1.8