diff --git a/src/android/Sync.java b/src/android/Sync.java index 63b17ea..8d9511c 100644 --- a/src/android/Sync.java +++ b/src/android/Sync.java @@ -342,8 +342,8 @@ private boolean download(final String source, final File file, final JSONObject try { sendErrorMessage(e.getLocalizedMessage(), CONNECTION_ERROR, callbackContext, connection.getResponseCode()); } - catch( Throwable e ){ - sendErrorMessage(e.getLocalizedMessage(), CONNECTION_ERROR, callbackContext, -1); + catch( Throwable handShakeError ){ + sendErrorMessage(handShakeError.getLocalizedMessage(), CONNECTION_ERROR, callbackContext, -1); } } catch (IOException ioe) { }