show error on Load error
This commit is contained in:
@@ -85,7 +85,7 @@ Handle<v8::Value> Load(const Arguments& args) {
|
||||
if (source.IsEmpty()) {
|
||||
return v8::ThrowException(v8::String::New("Error loading file"));
|
||||
}
|
||||
if (!ExecuteString(source, v8::String::New(*file), false, false)) {
|
||||
if (!ExecuteString(source, v8::String::New(*file), false, true)) {
|
||||
return v8::ThrowException(v8::String::New("Error executing file"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user