Commit 85e1d51e authored by Elias Dohmen's avatar Elias Dohmen 🎓

isBifurcatingTree error message fix

parent 3bf1fd52
Pipeline #707 passed with stages
in 1 minute and 37 seconds
......@@ -712,7 +712,7 @@ bool isBifurcatingTree(const Tree<DataType> &tree, bool throwError = false) {
unsigned int cnum = cNode->nChildren();
if (cnum == 1) {
if (throwError) {
throw std::runtime_error("Error: Not a bifurcating tree. Node with just one child detected - Node-ID " + cNode->id);
throw std::runtime_error("Error: Not a bifurcating tree. Node with just one child detected - Node-ID " + std::to_string(cNode->id));
}
else {
bifur = false;
......@@ -720,7 +720,7 @@ bool isBifurcatingTree(const Tree<DataType> &tree, bool throwError = false) {
}
if (cnum > 2) {
if (throwError) {
throw std::runtime_error("Error: Not a bifurcating tree. Node with more than two childs detected - Node-ID " + cNode->id);
throw std::runtime_error("Error: Not a bifurcating tree. Node with more than two childs detected - Node-ID " + std::to_string(cNode->id));
}
else {
bifur = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment