Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nevermore3 committed Jan 4, 2024
1 parent 19c41ec commit 6522941
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graph/validator/Validator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include "graph/visitor/EvaluableExprVisitor.h"
#include "parser/Sentence.h"
DEFINE_uint32(max_statements,
512,
1024,
"threshold for maximun number of statements that can be validate");
namespace nebula {
namespace graph {
Expand Down Expand Up @@ -298,7 +298,7 @@ Status Validator::validate(Sentence* sentence, QueryContext* qctx) {
qctx->plan()->setRoot(root);
// reset maxStatements
maxStatements_ = 0;
} catch (const std::runtime_error& error) {
} catch (const std::exception& error) {
maxStatements_ = 0;
return Status::SemanticError(std::string(error.what()));
}
Expand Down

0 comments on commit 6522941

Please sign in to comment.