From a4175b042891b7b807273582b806d8ec364a60b7 Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Tue, 27 Nov 2018 14:17:28 -0800 Subject: [PATCH] Error handling in checkout --- interface/resources/qml/hifi/commerce/checkout/Checkout.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/interface/resources/qml/hifi/commerce/checkout/Checkout.qml b/interface/resources/qml/hifi/commerce/checkout/Checkout.qml index 6320cd1675..7e17d20375 100644 --- a/interface/resources/qml/hifi/commerce/checkout/Checkout.qml +++ b/interface/resources/qml/hifi/commerce/checkout/Checkout.qml @@ -1080,6 +1080,12 @@ Rectangle { // function updateCheckoutQMLFromHTTP(error, result) { + if (error || (result.status !== 'success')) { + // The QML will display a loading spinner forever if the user is stuck here. + console.log("Error in Checkout.qml when getting marketplace item info!"); + return; + } + root.itemInfoReceived = true; root.itemName = result.data.title; root.itemPrice = result.data.cost;