forked from qt-creator/qt-creator
iOS: Add some autotests for devicectl error parsing
Change-Id: I641f0c86b30a11ca6321db88afbf2969b4863972 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -25,7 +25,8 @@ Utils::expected_str<QJsonValue> Ios::Internal::parseDevicectlResult(const QByteA
|
||||
if (!errorValue.isUndefined()) {
|
||||
// error
|
||||
QString error
|
||||
= Tr::tr("Operation failed: %1.")
|
||||
//: The error message (%1) can contain a full stop, so do not add it here
|
||||
= Tr::tr("Operation failed: %1")
|
||||
.arg(errorValue["userInfo"]["NSLocalizedDescription"]["string"].toString());
|
||||
const QJsonValue userInfo
|
||||
= errorValue["userInfo"]["NSUnderlyingError"]["error"]["userInfo"];
|
||||
|
||||
Reference in New Issue
Block a user