Catch errors in resolver