1
0
Fork 0

don't throw

This commit is contained in:
Jan Steemann 2016-09-01 11:26:09 +02:00
parent a2f0b0a49f
commit 9591882cee
1 changed files with 1 additions and 6 deletions

View File

@ -46,12 +46,7 @@ static void JS_EnabledAgent(v8::FunctionCallbackInfo<v8::Value> const& args) {
TRI_V8_TRY_CATCH_BEGIN(isolate);
v8::HandleScope scope(isolate);
try {
ApplicationServer::getEnabledFeature<AgencyFeature>("Agency");
TRI_V8_RETURN_TRUE();
} catch (std::exception const& e) {
TRI_V8_RETURN_FALSE();
}
TRI_V8_RETURN(v8::Boolean::New(isolate, ApplicationServer::server->isEnabled("Agency")));
TRI_V8_TRY_CATCH_END