From ccf4d8c98cf0ce784421dfca96128b6df45c13e1 Mon Sep 17 00:00:00 2001 From: Hiddify Date: Mon, 5 Feb 2024 17:00:23 +0100 Subject: [PATCH] new: display go errors --- lib/core/model/failures.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/model/failures.dart b/lib/core/model/failures.dart index 1f28b6d9..3e3d95de 100644 --- a/lib/core/model/failures.dart +++ b/lib/core/model/failures.dart @@ -25,7 +25,7 @@ extension ErrorPresenter on TranslationsEn { UnexpectedFailure(error: final nestedErr?) => errorToPair(nestedErr), Failure() => error.present(this), DioException() => error.present(this), - _ => (type: failure.unexpected, message: null), + _ => (type: failure.unexpected, message: error.toString()), }; PresentableError presentError(