mirror of
https://github.com/foss42/apidash.git
synced 2025-06-22 15:29:16 +08:00
refactor: remove handling of specific HTTP client exceptions
This commit is contained in:
@ -105,13 +105,6 @@ Future<(HttpResponse?, Duration?, String?)> request(
|
||||
}
|
||||
stopwatch.stop();
|
||||
return (response, stopwatch.elapsed, null);
|
||||
} on http.ClientException catch (e) {
|
||||
if (e.message.contains('Connection closed') ||
|
||||
e.message.contains('Connection attempt cancelled')) {
|
||||
return (null, null, 'Request Cancelled');
|
||||
} else {
|
||||
return (null, null, e.toString());
|
||||
}
|
||||
} catch (e) {
|
||||
return (null, null, e.toString());
|
||||
} finally {
|
||||
|
Reference in New Issue
Block a user