Index: runtime/vm/debugger_api_impl.cc |
=================================================================== |
--- runtime/vm/debugger_api_impl.cc (revision 39377) |
+++ runtime/vm/debugger_api_impl.cc (working copy) |
@@ -450,7 +450,11 @@ |
function_name.ToCString()); |
} |
- debugger->OneTimeBreakAtEntry(bp_target); |
+ const Error& error = |
+ Error::Handle(isolate, debugger->OneTimeBreakAtEntry(bp_target)); |
+ if (!error.IsNull()) { |
+ return Api::NewHandle(isolate, error.raw()); |
+ } |
return Api::Success(); |
} |