Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(438)

Unified Diff: lib/src/apis_package_generator.dart

Issue 648623002: Change throwing String to throwing ApiRequestError (Closed) Base URL: https://github.com/dart-lang/discovery_api_dart_client_generator.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/apis_package_generator.dart
diff --git a/lib/src/apis_package_generator.dart b/lib/src/apis_package_generator.dart
index 2812c39b6f692a8b581bb74f31a82c2de262a69e..1a4a9aea87e5781a42705877d1a07700bcf8caec 100644
--- a/lib/src/apis_package_generator.dart
+++ b/lib/src/apis_package_generator.dart
@@ -851,7 +851,7 @@ class ResumableMediaUploader {
'Received less bytes than indicated by [Media.length].'));
return;
} else if (end > _uploadMedia.length) {
- completer.completeError(
+ completer.completeError(new common_external.ApiRequestError(
'Received more bytes than indicated by [Media.length].');
return;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698