From 04a002491b149bee6ba972e8288f867c791db19e Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 16 Sep 2013 21:51:59 +0200 Subject: [PATCH] Fail for unkonwn entities Change-Id: I13d668e92ea762e9888f8c1c4615eccad6a1ff1b --- codemaker/source/codemaker/typemanager.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codemaker/source/codemaker/typemanager.cxx b/codemaker/source/codemaker/typemanager.cxx index ff0e6f92a259..7779704cef1b 100644 --- a/codemaker/source/codemaker/typemanager.cxx +++ b/codemaker/source/codemaker/typemanager.cxx @@ -54,6 +54,9 @@ bool TypeManager::foundAtPrimaryProvider(OUString const & name) const { return true; } } + if (!manager_->findEntity(name).is()) { + throw CannotDumpException("Unknown entity '" + name + "'"); + } return false; }