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

Unified Diff: runtime/bin/vmservice_impl.cc

Issue 922163005: Fix HTTP support in vm-service (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | runtime/vm/service/message.dart » ('j') | runtime/vm/service/message.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice_impl.cc
diff --git a/runtime/bin/vmservice_impl.cc b/runtime/bin/vmservice_impl.cc
index 1b9654bd1051eb25c6b65824d147e23aaa2e1ed3..4a5429131b580ff20af4b0e1b6407931d5ac1661 100644
--- a/runtime/bin/vmservice_impl.cc
+++ b/runtime/bin/vmservice_impl.cc
@@ -266,6 +266,9 @@ Dart_Handle VmService::GetSource(const char* name) {
snprintf(&buffer[0], kBufferSize-1, "%s/%s", kLibrarySourceNamePrefix, name);
const char* vmservice_source = NULL;
int r = Resources::ResourceLookup(buffer, &vmservice_source);
+ if (r == Resources::kNoSuchInstance) {
+ FATAL1("vm-service: Could not find embedded source file: %s ", buffer);
+ }
ASSERT(r != Resources::kNoSuchInstance);
return Dart_NewStringFromCString(vmservice_source);
}
« no previous file with comments | « no previous file | runtime/vm/service/message.dart » ('j') | runtime/vm/service/message.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698