aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-01-26 02:03:26 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-01-26 02:03:26 +0100
commitbf6ac8f9ad7467a2c4d0e61df56027821e350c42 (patch)
tree00a0fdb039af3a9dabcae8d935f3688943b14aa3
parentUrlLineEdit rework (diff)
downloadsmolbote-bf6ac8f9ad7467a2c4d0e61df56027821e350c42.tar.xz
Added warning when trying to get value of non-existent options
-rw-r--r--src/configuration.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/configuration.h b/src/configuration.h
index 8173a86..913fa65 100644
--- a/src/configuration.h
+++ b/src/configuration.h
@@ -35,6 +35,7 @@ public:
{
// if setting doesn't exist, give back a nullopt
if(!m_userCfg->exists(path)) {
+ qWarning("Requesting non-existent option %s", path);
return std::nullopt;
}