make version gathering more paranoid: require explicit none if none is wanted
authorKonrad Rosenbaum <konrad@silmor.de>
Fri, 16 Dec 2011 18:17:38 +0000 (19:17 +0100)
committerKonrad Rosenbaum <konrad@silmor.de>
Fri, 16 Dec 2011 18:17:38 +0000 (19:17 +0100)
woc/proc/processor.cpp

index 56e7e8d..096ac46 100644 (file)
@@ -218,8 +218,11 @@ bool WocProcessor::processFile(QString fn)
                                succ=callGit();
                        if(!succ && m_verSys.contains("none"))
                                succ=callNoVer();
-                       if(!succ)
-                               qDebug()<<"Warning: unsuccessful in gathering version info. Tried:"<<m_verSys;
+                       if(!succ){
+                               qDebug()<<"Error: unsuccessful in gathering version info. Tried:"<<m_verSys;
+                               qDebug()<<"Info: try to add 'none' (adds dummy data if nothing else is available) to ensure it runs.";
+                               return false;
+                       }
                        m_verInfo.insert("Comm",m_verComm);
                        m_verInfo.insert("NeedComm",m_verNeedComm);
                        m_verInfo.insert("HR",m_verHR);