Adding exception message to on error callback