summaryrefslogtreecommitdiffstats
path: root/src/common-lib/utilities.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common-lib/utilities.cpp')
-rw-r--r--src/common-lib/utilities.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common-lib/utilities.cpp b/src/common-lib/utilities.cpp
index b489fe56..392c78dd 100644
--- a/src/common-lib/utilities.cpp
+++ b/src/common-lib/utilities.cpp
@@ -4,7 +4,7 @@
** Copyright (C) 2018 Pelagicore AG
** Contact: https://www.qt.io/licensing/
**
-** This file is part of the Luxoft Application Manager.
+** This file is part of the Qt Application Manager.
**
** $QT_BEGIN_LICENSE:LGPL-QTAS$
** Commercial License Usage
@@ -120,7 +120,7 @@ void checkYamlFormat(const QVector<QVariant> &docs, int numberOfDocuments,
}
if (numberOfDocuments < 0) {
- if (actualSize < numberOfDocuments) {
+ if (actualSize < -numberOfDocuments) {
throw Exception("wrong number of YAML documents: expected at least %1, got %2")
.arg(-numberOfDocuments).arg(actualSize);
}
@@ -131,7 +131,7 @@ void checkYamlFormat(const QVector<QVariant> &docs, int numberOfDocuments,
}
}
if (!formatTypes.contains(actualFormatType)) {
- throw Exception("wrong formatType header: expected %1, got %2")
+ throw Exception("wrong formatType header: expected '%1', got '%2'")
.arg(QString::fromUtf8(formatTypes.toList().join(", or ")), QString::fromUtf8(actualFormatType));
}
if (actualFormatVersion != formatVersion) {