Chromium Code Reviews| Index: third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp |
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp |
| index 46b0cdc848352797175c5fa0c95d4e1866ea3664..b269a5a39b8ed0bdbcba6a3407bd34d173a6d608 100644 |
| --- a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp |
| +++ b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp |
| @@ -706,9 +706,11 @@ void V8DebuggerAgentImpl::getGeneratorObjectDetails(ErrorString* errorString, co |
| v8::Context::Scope contextScope(context); |
| v8::Local<v8::Object> object; |
| - v8::Local<v8::Value> value = injectedScript->findObject(*remoteId); |
| - if (value.IsEmpty() || !value->IsObject() || !value->ToObject(context).ToLocal(&object)) { |
| - *errorString = "Could not find object with given id"; |
| + v8::Local<v8::Value> value; |
| + if (!injectedScript->findObject(errorString, *remoteId, &value)) |
| + return; |
| + if (!value->IsObject() || !value->ToObject(context).ToLocal(&object)) { |
| + *errorString = "Could not find object with type Object and given id"; |
|
dgozman
2016/03/18 20:52:21
Improve this error string.
kozy
2016/03/18 22:53:16
Done.
|
| return; |
| } |