Pass error to callback.