Sheet: display an error in console when a cyclic dependency is detected

This commit is contained in:
0penBrain
2023-04-27 12:34:45 +02:00
parent c98f632cb6
commit 719339657d

View File

@@ -1005,8 +1005,9 @@ DocumentObjectExecReturn *Sheet::execute(void)
std::list<Vertex> make_order;
try {
boost::topological_sort(graph, std::front_inserter(make_order));
} catch (std::exception&) {
} catch (std::exception&) { //TODO: evaluate using a more specific exception (not_a_dag)
// Cycle detected; flag all with errors
Base::Console().Error("Cyclic dependency detected in spreadsheet : %s\n", *pcNameInDocument);
std::ostringstream ss;
ss << "Cyclic dependency";
int count = 0;