Skip to content

Commit 6a3cf01

Browse files
committed
Fix exception name
1 parent d09da07 commit 6a3cf01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkgs/cupertino_http/example/integration_test/ns_error_client_exception.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void main() {
2626
.having(
2727
(e) => e.toString(),
2828
'toString()',
29-
'NSErrorClientExceptions: A server with the specified '
29+
'NSErrorClientException: A server with the specified '
3030
'hostname could not be found. '
3131
'[domain=NSURLErrorDomain, code=-1003], '
3232
'uri=http://doesnotexist/')));

pkgs/cupertino_http/lib/src/cupertino_client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class NSErrorClientExceptions extends ClientException {
2727
@override
2828
String toString() {
2929
final b = StringBuffer(
30-
'NSErrorClientExceptions: ${error.localizedDescription.toDartString()} '
30+
'NSErrorClientException: ${error.localizedDescription.toDartString()} '
3131
'[domain=${error.domain.toDartString()}, code=${error.code}]');
3232

3333
if (uri != null) {

0 commit comments

Comments
 (0)