Explorar el Código

添加错误打印

tags/0.0.1
Weller hace 4 años
padre
commit
a27d164742
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. +1
    -0
      lib/util/net_util.dart

+ 1
- 0
lib/util/net_util.dart Ver fichero

@@ -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() ?? '未知错误');
}


Cargando…
Cancelar
Guardar