commit | c58e4aaeb87c205b52e6fe494b23ca92c6f158b2 | [log] [tgz] |
---|---|---|
author | Václav Kubernát <kubernat@cesnet.cz> | Wed Apr 03 18:37:32 2019 +0200 |
committer | Jan Kundrát <jan.kundrat@cesnet.cz> | Wed Apr 10 17:01:54 2019 +0200 |
tree | 7ced7817174ec3a139985429c456460468547082 | |
parent | c649c5bd14bcac9c852f410c894d40a88e503481 [diff] [blame] |
Add sysrepo error handling Change-Id: I810de1afd0ad6161a18903f816e19db28ed9edf1
diff --git a/src/main.cpp b/src/main.cpp index 4ba886e..3019d36 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -78,6 +78,8 @@ boost::apply_visitor(Interpreter(parser, datastore), cmd); } catch (InvalidCommandException& ex) { std::cerr << ex.what() << std::endl; + } catch (DatastoreException& ex) { + std::cerr << ex.what() << std::endl; } lineEditor.history_add(line);