Minor: add error-debug-message in ase customer-nr is wrong
This commit is contained in:
		@@ -83,10 +83,17 @@ bool GitClient::gitCloneCustomerRepository() {
 | 
			
		||||
            QRegularExpressionMatch match = re.match(result);
 | 
			
		||||
            if (match.hasMatch()) {
 | 
			
		||||
                if (re.captureCount() == 3) { // start with full match (0), then the other 3 matches
 | 
			
		||||
                    if (match.captured(2).trimmed() == m_customerNr) {
 | 
			
		||||
                    QString const &customerNr = match.captured(2).trimmed();
 | 
			
		||||
                    if (customerNr == m_customerNr) {
 | 
			
		||||
                        qInfo() << "CLONING" << m_repositoryPath << "OK";
 | 
			
		||||
                        return true;
 | 
			
		||||
                    }
 | 
			
		||||
                    Utils::printCriticalErrorMsg(
 | 
			
		||||
                        QString("ERROR CLONE RESULT HAS WRONG CUSTOMER-NR. rcc=%1 customer=%2 CLONE_RESULT=%3")
 | 
			
		||||
                            .arg(re.captureCount())
 | 
			
		||||
                            .arg(customerNr)
 | 
			
		||||
                            .arg(result));
 | 
			
		||||
                    return false;
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            Utils::printCriticalErrorMsg(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user