Handle QueryRuntimeException in AM-REPL

Reviewers: florijan

Reviewed By: florijan

Differential Revision: https://phabricator.memgraph.io/D250
This commit is contained in:
Teon Banek 2017-04-10 09:11:14 +02:00
parent aca6b8f38b
commit 64d0163aad

View File

@ -188,6 +188,8 @@ void query::Repl(Dbms &dbms) {
std::cout << "SYNTAX EXCEPTION: " << e.what() << std::endl;
} catch (const query::SemanticException &e) {
std::cout << "SEMANTIC EXCEPTION: " << e.what() << std::endl;
} catch (const query::QueryRuntimeException &e) {
std::cout << "RUNTIME EXCEPTION: " << e.what() << std::endl;
}
}
}