new: display go errors

This commit is contained in:
Hiddify
2024-02-05 17:00:23 +01:00
parent a631a9889d
commit ccf4d8c98c

View File

@@ -25,7 +25,7 @@ extension ErrorPresenter on TranslationsEn {
UnexpectedFailure(error: final nestedErr?) => errorToPair(nestedErr), UnexpectedFailure(error: final nestedErr?) => errorToPair(nestedErr),
Failure() => error.present(this), Failure() => error.present(this),
DioException() => error.present(this), DioException() => error.present(this),
_ => (type: failure.unexpected, message: null), _ => (type: failure.unexpected, message: error.toString()),
}; };
PresentableError presentError( PresentableError presentError(