From f1b5ac0bbd847dcf80f321e8427ff4f39766c6ff Mon Sep 17 00:00:00 2001
From: tdzl2003 <tdzl2003@gmail.com>
Date: Sun, 8 May 2016 22:04:18 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DBUG:=20=E7=BC=96=E8=AF=91?=
 =?UTF-8?q?=E6=8A=A5=E9=94=99=E5=8F=8A=E4=BD=8E=E7=89=88=E6=9C=AC=E8=AE=BE?=
 =?UTF-8?q?=E5=A4=87=E6=8A=A5=E9=94=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ios/RCTHotUpdate/RCTHotUpdate.m | 6 +++---
 package.json                    | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ios/RCTHotUpdate/RCTHotUpdate.m b/ios/RCTHotUpdate/RCTHotUpdate.m
index 836035e..fd41e96 100644
--- a/ios/RCTHotUpdate/RCTHotUpdate.m
+++ b/ios/RCTHotUpdate/RCTHotUpdate.m
@@ -176,7 +176,7 @@ RCT_EXPORT_METHOD(downloadUpdate:(NSDictionary *)options
 {
     [self hotUpdate:HotUpdateTypeFullDownload options:options callback:^(NSError *error) {
         if (error) {
-            [reject error];
+            reject([NSString stringWithFormat: @"%lu", (long)error.code], error.localizedDescription, error);
         }
         else {
             resolve(nil);
@@ -190,7 +190,7 @@ RCT_EXPORT_METHOD(downloadPatchFromPackage:(NSDictionary *)options
 {
     [self hotUpdate:HotUpdateTypePatchFromPackage options:options callback:^(NSError *error) {
         if (error) {
-            [reject error];
+            reject([NSString stringWithFormat: @"%lu", (long)error.code], error.localizedDescription, error);
         }
         else {
             resolve(nil);
@@ -204,7 +204,7 @@ RCT_EXPORT_METHOD(downloadPatchFromPpk:(NSDictionary *)options
 {
     [self hotUpdate:HotUpdateTypePatchFromPpk options:options callback:^(NSError *error) {
         if (error) {
-            [reject error];
+            reject([NSString stringWithFormat: @"%lu", (long)error.code], error.localizedDescription, error);
         }
         else {
             resolve(nil);
diff --git a/package.json b/package.json
index 5f96229..f215c1f 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "react-native-update",
-  "version": "1.0.3",
+  "version": "1.0.4",
   "description": "react-native hot update",
   "main": "lib/index.js",
   "scripts": {