You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by cx...@apache.org on 2018/11/06 07:41:29 UTC
[incubator-weex] branch master updated: [iOS] add userinfo to
bundle loader failed error message. (#1719)
This is an automated email from the ASF dual-hosted git repository.
cxfeng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git
The following commit(s) were added to refs/heads/master by this push:
new c668c55 [iOS] add userinfo to bundle loader failed error message. (#1719)
c668c55 is described below
commit c668c554da53aaf965a4836775718eae58a3c30d
Author: wqyfavor <wq...@163.com>
AuthorDate: Tue Nov 6 15:41:25 2018 +0800
[iOS] add userinfo to bundle loader failed error message. (#1719)
---
ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
index 8453d41..ab3c557 100644
--- a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
+++ b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
@@ -593,7 +593,7 @@ typedef enum : NSUInteger {
};
_mainBundleLoader.onFailed = ^(NSError *loadError) {
- NSString *errorMessage = [NSString stringWithFormat:@"Request to %@ occurs an error:%@", request.URL, loadError.localizedDescription];
+ NSString *errorMessage = [NSString stringWithFormat:@"Request to %@ occurs an error:%@, info:%@", request.URL, loadError.localizedDescription, loadError.userInfo];
long wxErrorCode = [loadError.domain isEqualToString:NSURLErrorDomain] && loadError.code == NSURLErrorNotConnectedToInternet ? WX_ERR_NOT_CONNECTED_TO_INTERNET : WX_ERR_JSBUNDLE_DOWNLOAD;
WX_MONITOR_FAIL_ON_PAGE(WXMTJSDownload, wxErrorCode, errorMessage, weakSelf.pageName);