Browse Source

添加错误打印

tags/0.0.1
Weller 4 years ago
parent
commit
a27d164742
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      lib/util/net_util.dart

+ 1
- 0
lib/util/net_util.dart View File

@@ -189,6 +189,7 @@ class NetUtil {
onError(result[GlobalConfig.HTTP_RESPONSE_KEY_MSG] ?? '未知错误');
}
} catch (e) {
Logger.error('error: ' + e.toString());
if (onError != null) {
onError(e?.toString() ?? '未知错误');
}


Loading…
Cancel
Save