diff --git a/src/App/DocumentObject.cpp b/src/App/DocumentObject.cpp
index f92103c0b0..581d21d417 100644
--- a/src/App/DocumentObject.cpp
+++ b/src/App/DocumentObject.cpp
@@ -28,6 +28,7 @@
#include
#include
+#include
#include "Document.h"
#include "DocumentObject.h"
@@ -77,7 +78,11 @@ App::DocumentObjectExecReturn *DocumentObject::recompute(void)
{
//check if the links are valid before making the recompute
if(!GeoFeatureGroupExtension::areLinksValid(this))
+#if 1
+ Base::Console().Warning("%s: Links go out of the allowed scope\n", getTypeId().getName());
+#else
return new App::DocumentObjectExecReturn("Links go out of the allowed scope", this);
+#endif
// set/unset the execution bit
Base::ObjectStatusLocker exe(App::Recompute, this);