From a78040a03750f29f4f81c9cc111ec1662c1a3b19 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Wed, 18 Oct 2023 16:19:37 +0200 Subject: [PATCH] Minor: add error-debug-message in ase customer-nr is wrong --- git/git_client.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/git/git_client.cpp b/git/git_client.cpp index 41f3f9c..2709df7 100644 --- a/git/git_client.cpp +++ b/git/git_client.cpp @@ -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(