Add exception warning to stdout handler of native child process exec

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-07-19 19:14:05 -06:00
parent ea385dad4b
commit d24f9667f8

View File

@@ -457,6 +457,11 @@ bool NativeHandler::Execute(const CefString& name,
args.push_back(CefV8Value::CreateString(std::string([contents UTF8String], [contents lengthOfBytesUsingEncoding:NSUTF8StringEncoding])));
function->ExecuteFunction(function, args, retval, e, false);
if (e.get()) {
NSLog(@"Error thrown in OutputHandle %s", e->GetMessage().ToString().c_str());
}
[contents release];
context->Exit();
};