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

Unified Diff: pkg/analysis_server/lib/src/protocol.dart

Issue 1141773002: Fix server error messages (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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: pkg/analysis_server/lib/src/protocol.dart
diff --git a/pkg/analysis_server/lib/src/protocol.dart b/pkg/analysis_server/lib/src/protocol.dart
index a0854aa871f19f723bc0e74fd904672cd03edf53..8cee0f6d5b0f8160ec5e7a8da587b47cba342e76 100644
--- a/pkg/analysis_server/lib/src/protocol.dart
+++ b/pkg/analysis_server/lib/src/protocol.dart
@@ -594,14 +594,14 @@ class RequestDecoder extends JsonDecoder {
@override
dynamic mismatch(String jsonPath, String expected) {
- return new RequestFailure(
- new Response.invalidParameter(_request, jsonPath, 'be $expected'));
+ return new RequestFailure(new Response.invalidParameter(
+ _request, jsonPath, 'Expected to be $expected'));
}
@override
dynamic missingKey(String jsonPath, String key) {
return new RequestFailure(new Response.invalidParameter(
- _request, jsonPath, 'contain key ${JSON.encode(key)}'));
+ _request, jsonPath, 'Expected to contain key ${JSON.encode(key)}'));
}
}
« 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