1
0
Fork 0

Fix v8 contexts check.

This commit is contained in:
Max Neunhoeffer 2016-06-10 15:48:38 +02:00
parent ae4233bebd
commit 96053268aa
3 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ void ConsoleThread::run() {
// enter V8 context
_context = V8DealerFeature::DEALER->enterContext(_vocbase, true);
if (_context != nullptr) {
if (_context == nullptr) {
LOG(FATAL) << "cannot acquire V8 context";
FATAL_ERROR_EXIT();
}

View File

@ -72,7 +72,7 @@ int ScriptFeature::runScript(std::vector<std::string> const& scripts) {
V8Context* context =
V8DealerFeature::DEALER->enterContext(database->vocbase(), true);
if (context != nullptr) {
if (context == nullptr) {
LOG(FATAL) << "cannot acquire V8 context";
FATAL_ERROR_EXIT();
}

View File

@ -65,7 +65,7 @@ int UnitTestsFeature::runUnitTests(std::vector<std::string> const& unitTests) {
V8Context* context =
V8DealerFeature::DEALER->enterContext(database->vocbase(), true);
if (context != nullptr) {
if (context == nullptr) {
LOG(FATAL) << "cannot acquire V8 context";
FATAL_ERROR_EXIT();
}