1
0
Fork 0

log exceptions during execution of scripts.

This commit is contained in:
Willi Goesgens 2015-07-14 17:36:30 +02:00
parent 419f2d965a
commit a435a96ea6
1 changed files with 5 additions and 0 deletions

View File

@ -228,6 +228,11 @@ static bool LoadJavaScriptFile (v8::Isolate* isolate,
// execute script
v8::Handle<v8::Value> result = script->Run();
if (tryCatch.HasCaught()) {
TRI_LogV8Exception(isolate, &tryCatch);
return false;
}
if (result.IsEmpty()) {
return false;
}