Native handler logs when completion callback for child process raises exception

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-07-17 18:39:00 -06:00
parent dcb8fd71e0
commit f998da301c

View File

@@ -473,6 +473,11 @@ bool NativeHandler::Execute(const CefString& name,
args.push_back(CefV8Value::CreateString([errorOutput UTF8String]));
callback->ExecuteFunction(callback, args, retval, e, false);
if (e.get()) {
NSLog(@"Error thrown in TaskTerminatedHandle %s", e->GetMessage().ToString().c_str());
}
context->Exit();
stdout.fileHandleForReading.writeabilityHandler = nil;