mirror of
https://github.com/foss42/apidash.git
synced 2025-06-23 16:18:14 +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();
|
stopwatch.stop();
|
||||||
return (response, stopwatch.elapsed, null);
|
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) {
|
} catch (e) {
|
||||||
return (null, null, e.toString());
|
return (null, null, e.toString());
|
||||||
} finally {
|
} finally {
|
||||||
|
Reference in New Issue
Block a user