Index: runtime/bin/vmservice/server.dart |
diff --git a/runtime/bin/vmservice/server.dart b/runtime/bin/vmservice/server.dart |
index 34d57158032e8e15162069b1860d7af2a489ca6f..8697e659259c0b7ddb3662e2aa17733c492fabb5 100644 |
--- a/runtime/bin/vmservice/server.dart |
+++ b/runtime/bin/vmservice/server.dart |
@@ -146,9 +146,16 @@ class Server { |
return; |
} |
// HTTP based service request. |
- var client = new HttpRequestClient(request, _service); |
- var message = new Message.fromUri(client, request.uri); |
- client.onMessage(null, message); |
+ try { |
+ var client = new HttpRequestClient(request, _service); |
+ var message = new Message.fromUri(client, request.uri); |
+ client.onMessage(null, message); |
+ } catch (e) { |
+ print('Unexpected error processing HTTP request uri: ' |
+ '${request.uri}\n$e\n'); |
+ rethrow; |
+ } |
+ |
} |
Future startup() { |