Index: runtime/vm/service.cc |
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc |
index 8ef6e8945abac5c1c7ade1623371734315fd2a2c..c57890a6b0404b44a1e447cfeb2be8747eee10b6 100644 |
--- a/runtime/vm/service.cc |
+++ b/runtime/vm/service.cc |
@@ -2493,18 +2493,8 @@ static bool ReloadSources(Thread* thread, JSONStream* js) { |
const bool force_reload = |
BoolParameter::Parse(js->LookupParam("force"), false); |
- isolate->ReloadSources(force_reload); |
+ isolate->ReloadSources(js, force_reload); |
- const Error& error = Error::Handle(isolate->sticky_reload_error()); |
- |
- if (error.IsNull()) { |
- PrintSuccess(js); |
- } else { |
- // Clear the sticky error. |
- isolate->clear_sticky_reload_error(); |
- js->PrintError(kIsolateReloadFailed, |
- "Isolate reload failed: %s", error.ToErrorCString()); |
- } |
return true; |
} |