@onekeyfe/react-native-cloud-fs 2.6.1 → 2.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -191,15 +191,16 @@ public class RNCloudFsModule extends ReactContextBaseJavaModule implements Googl
191
191
  })
192
192
  .addOnFailureListener(exception -> {
193
193
  clearPendingOperations();
194
- Log.e(TAG, "Unable to query files: " + exception.getCause().getMessage());
195
194
  try {
195
+ Log.e(TAG, "Unable to query files: " + exception.getCause().getMessage());
196
196
  UserRecoverableAuthIOException e = (UserRecoverableAuthIOException) exception;
197
197
  mPendingPromise = promise;
198
198
  mPendingOptions = options;
199
199
  mPendingOperation = LIST_FILES;
200
200
  this.reactContext.startActivityForResult(e.getIntent(), REQUEST_AUTHORIZATION, null);
201
201
  } catch (Exception e) {
202
- throw e;
202
+ // throw e;
203
+ promise.reject(e);
203
204
  }
204
205
  });
205
206
  } catch (Exception exception) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-cloud-fs",
3
- "version": "2.6.1",
3
+ "version": "2.6.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {