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

Unified Diff: runtime/bin/vmservice/running_isolates.dart

Issue 106193003: Cleanup VM service (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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 | runtime/bin/vmservice/server.dart » ('j') | runtime/bin/vmservice/server.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice/running_isolates.dart
diff --git a/runtime/bin/vmservice/running_isolates.dart b/runtime/bin/vmservice/running_isolates.dart
index 0cfa02f3048542f47d300a39124075b14c240378..9b25a79bf760746cef6ea1d63081252bf82f0740 100644
--- a/runtime/bin/vmservice/running_isolates.dart
+++ b/runtime/bin/vmservice/running_isolates.dart
@@ -40,10 +40,12 @@ class RunningIsolates implements ServiceRequestRouter {
Future route(ServiceRequest request) {
if (request.pathSegments.length == 0) {
- return null;
+ request.setErrorResponse('No route for: $path');
+ return new Future.value(request);
}
if (request.pathSegments[0] != 'isolates') {
- return null;
+ request.setErrorResponse('No route for: $path');
+ return new Future.value(request);
}
if (request.pathSegments.length == 1) {
// Requesting list of running isolates.
« no previous file with comments | « no previous file | runtime/bin/vmservice/server.dart » ('j') | runtime/bin/vmservice/server.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698