Skip to content

Non-localized error description in ClientException #1442

Closed
@jv-soares

Description

@jv-soares

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?

Metadata

Metadata

Assignees

Labels

package:cupertino_httpIssues related to package:cupertino_httptype-enhancementA request for a change that isn't a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions