mirror of https://gitee.com/bigwinds/arangodb
don't throw
This commit is contained in:
parent
a2f0b0a49f
commit
9591882cee
|
@ -46,12 +46,7 @@ static void JS_EnabledAgent(v8::FunctionCallbackInfo<v8::Value> const& args) {
|
||||||
TRI_V8_TRY_CATCH_BEGIN(isolate);
|
TRI_V8_TRY_CATCH_BEGIN(isolate);
|
||||||
v8::HandleScope scope(isolate);
|
v8::HandleScope scope(isolate);
|
||||||
|
|
||||||
try {
|
TRI_V8_RETURN(v8::Boolean::New(isolate, ApplicationServer::server->isEnabled("Agency")));
|
||||||
ApplicationServer::getEnabledFeature<AgencyFeature>("Agency");
|
|
||||||
TRI_V8_RETURN_TRUE();
|
|
||||||
} catch (std::exception const& e) {
|
|
||||||
TRI_V8_RETURN_FALSE();
|
|
||||||
}
|
|
||||||
|
|
||||||
TRI_V8_TRY_CATCH_END
|
TRI_V8_TRY_CATCH_END
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue