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

Unified Diff: mojo/public/dart/mojo/lib/src/stub.dart

Issue 1378163004: Dart: Performance improvements to Dart's handle watcher. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Format Created 5 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 | « mojo/dart/embedder/mojo_natives.cc ('k') | mojo/public/dart/mojo/sdk_ext/internal.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/dart/mojo/lib/src/stub.dart
diff --git a/mojo/public/dart/mojo/lib/src/stub.dart b/mojo/public/dart/mojo/lib/src/stub.dart
index 6fe7979061a18cc0cea229643e20cb65f12cf3bd..2b66adfdf8425ba5e7fbfc90a03679cb13ab1874 100644
--- a/mojo/public/dart/mojo/lib/src/stub.dart
+++ b/mojo/public/dart/mojo/lib/src/stub.dart
@@ -23,7 +23,7 @@ abstract class Stub extends core.MojoEventStreamListener {
var result = endpoint.query();
assert(result.status.isOk || result.status.isResourceExhausted);
if (result.bytesRead == 0) {
- throw new MojoCodecError('Unexpected empty message.');
+ throw new MojoCodecError('Unexpected empty message: $this');
}
// Read the data and view as a message.
« no previous file with comments | « mojo/dart/embedder/mojo_natives.cc ('k') | mojo/public/dart/mojo/sdk_ext/internal.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698