add (approximated) gradients into exception message