Index: runtime/vm/code_generator.cc |
diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc |
index b0b3a9c14df259a671d84fe1de55d7edb8ea5701..bc9689c2fe3bb0ad5daa9d5785f86ac52aa31c43 100644 |
--- a/runtime/vm/code_generator.cc |
+++ b/runtime/vm/code_generator.cc |
@@ -1357,13 +1357,13 @@ DEFINE_RUNTIME_ENTRY(StackOverflow, 0) { |
} |
if (do_reload) { |
#ifndef PRODUCT |
+ JSONStream js; |
// Maybe adjust the rate of future reloads. |
isolate->MaybeIncreaseReloadEveryNStackOverflowChecks(); |
// Issue a reload. |
- isolate->ReloadSources(true /* force_reload */); |
- const Error& error = Error::Handle(isolate->sticky_reload_error()); |
- if (!error.IsNull()) { |
- FATAL1("*** Isolate reload failed: %s\n", error.ToErrorCString()); |
+ bool success = isolate->ReloadSources(&js, true /* force_reload */); |
+ if (!success) { |
+ FATAL1("*** Isolate reload failed:\n%s\n", js.ToCString()); |
} |
#endif |
} |