diff options
Diffstat (limited to 'task_cell_graph/c++/main.cpp')
| -rw-r--r-- | task_cell_graph/c++/main.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/task_cell_graph/c++/main.cpp b/task_cell_graph/c++/main.cpp new file mode 100644 index 0000000..9fa6aab --- /dev/null +++ b/task_cell_graph/c++/main.cpp @@ -0,0 +1,28 @@ +#include <forstio/error.hpp> + +#include "dependency.hpp" + +namespace kel { +saw::error_or<void> real_main(int argc, char** argv){ + + return saw::make_void(); +} +} + +int main(int argc, char** argv){ + auto eov = kel::real_main(argc, argv); + if(eov.is_error()){ + auto& err = eov.get_error(); + auto err_msg = err.get_message(); + std::cerr<<"[Error]: "<<err.get_category(); + + if(not err_msg.empty()){ + std::cerr<<" - "<<err_msg; + } + std::cerr<<std::endl; + + return err.get_id(); + } + + return 0; +} |
