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

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

Issue 530583004: Rename Error to RequestError in analysis server API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
Index: pkg/analysis_server/lib/src/socket_server.dart
diff --git a/pkg/analysis_server/lib/src/socket_server.dart b/pkg/analysis_server/lib/src/socket_server.dart
index 9623ae40201c5a125f3727ca0e34b2dd58922b18..cffffa0813e5275f957e029b225e0614ec590215 100644
--- a/pkg/analysis_server/lib/src/socket_server.dart
+++ b/pkg/analysis_server/lib/src/socket_server.dart
@@ -52,7 +52,8 @@ class SocketServer {
*/
void createAnalysisServer(ServerCommunicationChannel serverChannel) {
if (analysisServer != null) {
- RequestError error = new RequestError.serverAlreadyStarted();
+ RequestError error = new RequestError(
+ RequestErrorCode.SERVER_ALREADY_STARTED, "Server already started");
serverChannel.sendResponse(new Response('', error: error));
serverChannel.listen((Request request) {
serverChannel.sendResponse(new Response(request.id, error: error));
« no previous file with comments | « pkg/analysis_server/lib/src/protocol.dart ('k') | pkg/analysis_server/test/integration/integration_tests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698