From 1e9c14b136d89557906b9ce08be274fcc6536a37 Mon Sep 17 00:00:00 2001 From: Riadh Luke Bello Date: Mon, 26 Feb 2018 21:34:52 +0800 Subject: [PATCH] pass the correct error variable to error handler for invalid status codes --- EmarsysPredictSDK/EMSession.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EmarsysPredictSDK/EMSession.m b/EmarsysPredictSDK/EMSession.m index 26d3b3c..84dbd2e 100644 --- a/EmarsysPredictSDK/EMSession.m +++ b/EmarsysPredictSDK/EMSession.m @@ -94,7 +94,7 @@ - (void)sendTransaction:(EMTransaction *)transaction err = [NSError errorWithDomain:EMErrorDomain code:EMErrorBadHTTPStatus userInfo:d]; - errorHandler(error); + errorHandler(err); return; } // Find cdv