Closed
Description
Hey guys this is rather a question than a feature request.
The problem im facing is that some ClientException
errors sent to my crash reporting tool are unreadable and hard to group because they contain localized messages.
For instance, I see ClientException: Неможливо встановити з’єднання для передавання даних, бо триває виклик
as an error message and i have no idea what it means.
By taking a quick look at cupertino_client.dart
i could find how a ClientException
is constructed using NSError.localizedDescription
static void _onComplete(URLSession session, URLSessionTask task, NSError? error) {
final taskTracker = _tracker(task);
if (error != null) {
final exception = ClientException(error.localizedDescription.toString(), taskTracker.request.url);
...
so my question is: is it possible to use a non-localized description instead?