Commit e890ec5b authored by Carlo Bernaschina's avatar Carlo Bernaschina Committed by GitHub

Fix 'reloadSources' service from Observatory (#11315)

Fixes https://github.com/flutter/flutter/issues/11314
parent 194bf41e
......@@ -89,7 +89,7 @@ class HotRunner extends ResidentRunner {
{ bool force: false, bool pause: false }) async {
// TODO(cbernaschina): check that isolateId is the id of the UI isolate.
final OperationResult result = await restart(pauseAfterRestart: pause);
if (result != OperationResult.ok) {
if (!result.isOk) {
throw new rpc.RpcException(
rpc_error_code.INTERNAL_ERROR,
'Unable to reload sources',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment