Elaborate onError callback