Index: pkg/webdriver/lib/webdriver.dart |
diff --git a/pkg/webdriver/lib/webdriver.dart b/pkg/webdriver/lib/webdriver.dart |
index 0dbbae4dbb4ed8d947196a916837205cf8569e13..837836bd4c49944df5e550f69392d0864bd773d6 100644 |
--- a/pkg/webdriver/lib/webdriver.dart |
+++ b/pkg/webdriver/lib/webdriver.dart |
@@ -263,7 +263,7 @@ class WebDriverBase { |
}; |
connection.onError = (e) { |
if (completer != null) { |
- completer.completeException(new WebDriverError(-1, e)); |
+ completer.completeError(new WebDriverError(-1, e)); |
completer = null; |
} |
}; |
@@ -320,7 +320,7 @@ class WebDriverBase { |
}; |
}; |
} catch (e, s) { |
- completer.completeException( |
+ completer.completeError( |
new WebDriverError(-1, e), s); |
completer = null; |
} |