qiniudemo / react-native-sdk

Qiniu React Native SDK ,A pure javascript implementation
MIT License
155 stars 37 forks source link

rpc.js 数据校验的reject返回值应该有提示比较好? #32

Closed ds009 closed 7 years ago

ds009 commented 7 years ago

在rpc.js里面这一段如果没看源码的话容易收到null作为返回结果,不便debug,能否加个提示消息?谢谢啦

if (typeof uri != 'string' || uri == '' || typeof formInput.key == 'undefined') { reject && reject(null); return; }

buhe commented 7 years ago

send pr be free :)