8000 don't throw · saliormoon/arangodb@9591882 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9591882

Browse files
committed
don't throw
1 parent a2f0b0a commit 9591882

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

arangod/Agency/v8-agency.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,7 @@ static void JS_EnabledAgent(v8::FunctionCallbackInfo<v8::Value> const& args) {
4646
TRI_V8_TRY_CATCH_BEGIN(isolate);
4747
v8::HandleScope scope(isolate);
4848

49-
try {
50-
ApplicationServer::getEnabledFeature<AgencyFeature>("Agency");
51-
TRI_V8_RETURN_TRUE();
52-
} catch (std::exception const& e) {
53-
TRI_V8_RETURN_FALSE();
54-
}
49+
TRI_V8_RETURN(v8::Boolean::New(isolate, ApplicationServer::server->isEnabled("Agency")));
5550

5651
TRI_V8_TRY_CATCH_END
5752

0 commit comments

Comments
 (0)
0