Skip to content

Commit

Permalink
Print expression evaluation failure only when debug flag is active (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Oct 19, 2023
1 parent 7b4bd93 commit bff45e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions OMEdit/OMEditLIB/Annotations/DynamicAnnotation.cpp
Expand Up @@ -143,8 +143,10 @@ void DynamicAnnotation::evaluate(ModelInstance::Model *pModel)
return *exp;
}));
} catch (const std::exception &e) {
qDebug() << "Failed to evaluate expression.";
qDebug() << e.what();
if (MainWindow::instance()->isDebug()) {
qDebug() << "Failed to evaluate expression.";
qDebug() << e.what();
}
}
}
}
Expand Down

0 comments on commit bff45e9

Please sign in to comment.