diff --git a/src/plugins/lua/bindings/fetch.cpp b/src/plugins/lua/bindings/fetch.cpp index 0790ed8e29b..00115a26d4c 100644 --- a/src/plugins/lua/bindings/fetch.cpp +++ b/src/plugins/lua/bindings/fetch.cpp @@ -8,6 +8,7 @@ #include #include +#include #include #include @@ -91,8 +92,11 @@ void addFetchModule() reply->deleteLater(); if (reply->error() != QNetworkReply::NoError) { - callback( - QString("%1 (%2)").arg(reply->errorString()).arg(reply->error())); + callback(QString("%1 (%2)") + .arg(reply->errorString()) + .arg(QString::fromLatin1( + QMetaEnum::fromType() + .valueToKey(reply->error())))); return; }