Browse Source

report errors from loaded files

v0.7.4-release
Ryan 16 years ago
parent
commit
5b08b827f9
  1. 2
      node.cc

2
node.cc

@ -178,7 +178,7 @@ v8::Handle<v8::Value> Load(const v8::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"));
}
}

Loading…
Cancel
Save