diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-19 19:16:14 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-19 19:16:14 +0100 |
commit | 6d4c826db6d40ede3199c2f618d63792714d90dc (patch) | |
tree | 615f1541bcded17f1c0239857ee6208f1a4a6bff /common/resourcecontext.h | |
parent | 11b29fb82edc19925a84bc50ec0f6e6b56a16120 (diff) | |
download | sink-6d4c826db6d40ede3199c2f618d63792714d90dc.tar.gz sink-6d4c826db6d40ede3199c2f618d63792714d90dc.zip |
Better error message
Diffstat (limited to 'common/resourcecontext.h')
-rw-r--r-- | common/resourcecontext.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/resourcecontext.h b/common/resourcecontext.h index 6058ac7..6ceba01 100644 --- a/common/resourcecontext.h +++ b/common/resourcecontext.h | |||
@@ -55,7 +55,9 @@ struct ResourceContext { | |||
55 | DomainTypeAdaptorFactoryInterface &adaptorFactory(const QByteArray &type) const | 55 | DomainTypeAdaptorFactoryInterface &adaptorFactory(const QByteArray &type) const |
56 | { | 56 | { |
57 | auto factory = adaptorFactories.value(type); | 57 | auto factory = adaptorFactories.value(type); |
58 | Q_ASSERT(factory); | 58 | if (!factory) { |
59 | qFatal("Failed to find a factory for %s", type.constData()); | ||
60 | } | ||
59 | return *factory; | 61 | return *factory; |
60 | } | 62 | } |
61 | 63 | ||