From 56135dc19fb5eaed0aa6d03cfb8e9175ace7a0e8 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Mon, 16 Jan 2023 18:49:15 -0600 Subject: [PATCH] error message fixes --- lib/services/buy/simplex/simplex_api.dart | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/services/buy/simplex/simplex_api.dart b/lib/services/buy/simplex/simplex_api.dart index cf313010c..7b531c5ee 100644 --- a/lib/services/buy/simplex/simplex_api.dart +++ b/lib/services/buy/simplex/simplex_api.dart @@ -126,8 +126,7 @@ class SimplexAPI { var res = await http.post(url, headers: headers, body: data); if (res.statusCode != 200) { - throw Exception( - 'getAvailableCurrencies exception: statusCode= ${res.statusCode}'); + throw Exception('getQuote exception: statusCode= ${res.statusCode}'); } final jsonArray = jsonDecode(res.body); @@ -136,8 +135,7 @@ class SimplexAPI { return await compute(_parseQuote, jsonArray); } catch (e, s) { - Logging.instance.log("getAvailableCurrencies exception: $e\n$s", - level: LogLevel.Error); + Logging.instance.log("getQuote exception: $e\n$s", level: LogLevel.Error); return BuyResponse( exception: BuyException( e.toString(), @@ -164,7 +162,7 @@ class SimplexAPI { return BuyResponse(value: _quote); } catch (e, s) { Logging.instance - .log("_parseSupported exception: $e\n$s", level: LogLevel.Error); + .log("_parseQuote exception: $e\n$s", level: LogLevel.Error); return BuyResponse( exception: BuyException( e.toString(),