From e73c0efc4530e21d3af6f67158f9a50a2c550c8b Mon Sep 17 00:00:00 2001 From: "brianwilkerson@google.com" Date: Wed, 13 May 2015 20:05:45 +0000 Subject: [PATCH] Fix server error messages R=scheglov@google.com Review URL: https://codereview.chromium.org//1141773002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45775 260f80e4-7a28-3924-810f-c04153c831b5 --- pkg/analysis_server/lib/src/protocol.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/analysis_server/lib/src/protocol.dart b/pkg/analysis_server/lib/src/protocol.dart index a0854aa871f..8cee0f6d5b0 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)}')); } }