kget: replace kError()/abort() with kFatal() calls

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-06-21 02:55:11 +03:00
parent a6eaf629e1
commit 9ce106cc55

View file

@ -28,8 +28,7 @@ VerfierTest::VerfierTest(QObject *parent)
path.append("test.txt");
QFile file(path);
if (!file.open(QIODevice::WriteOnly | QIODevice::Truncate)) {
kError() << "Creating file failed:" << path;
abort();
kFatal() << "Creating file failed:" << path;
}
m_file = KUrl(path);
@ -37,8 +36,7 @@ VerfierTest::VerfierTest(QObject *parent)
const qint64 size = data.size();
for (int i = 0; i < 50000; ++i) {
if (file.write(data) != size) {
kError() << "Creating file failed:" << path;
abort();
kFatal() << "Creating file failed:" << path;
}
}