Minor: add error-debug-message in ase customer-nr is wrong

This commit is contained in:
Gerhard Hoffmann 2023-10-18 16:19:37 +02:00
parent 9b175d7789
commit a78040a037

View File

@ -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(