From 6f93054908122fea383abae747c97da7227ef4c0 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Mon, 9 Mar 2015 09:13:00 -0700 Subject: [PATCH] Add assert back Also changed to qWarning --- src/FactSystem/FactBinder.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/FactSystem/FactBinder.cc b/src/FactSystem/FactBinder.cc index 16976fca7..ed305ae50 100644 --- a/src/FactSystem/FactBinder.cc +++ b/src/FactSystem/FactBinder.cc @@ -65,7 +65,8 @@ void FactBinder::setName(const QString& name) emit valueChanged(); emit nameChanged(); } else { - qDebug() << "FAILED BINDING PARAM" << name << ": PARAM DOES NOT EXIST ON SYSTEM!"; + qWarning() << "FAILED BINDING PARAM" << name << ": PARAM DOES NOT EXIST ON SYSTEM!"; + Q_ASSERT(false); } } } @@ -84,7 +85,8 @@ void FactBinder::setValue(const QVariant& value) if (_fact) { _fact->setValue(value); } else { - qDebug() << "FAILED SETTING PARAM VALUE" << value.toString() << ": PARAM DOES NOT EXIST ON SYSTEM!"; + qWarning() << "FAILED SETTING PARAM VALUE" << _fact->name() << ": PARAM DOES NOT EXIST ON SYSTEM!"; + Q_ASSERT(false); } } -- 2.22.0