mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
ensure error message when marketplace update fails
This commit is contained in:
parent
366dd935dd
commit
ddfd437696
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ Rectangle {
|
||||||
|
|
||||||
onUpdateItemResult: {
|
onUpdateItemResult: {
|
||||||
if (result.status !== 'success') {
|
if (result.status !== 'success') {
|
||||||
failureErrorText.text = result.message;
|
failureErrorText.text = result.data ? (result.data.message || "Unknown Error") : JSON.stringify(result);
|
||||||
root.activeView = "checkoutFailure";
|
root.activeView = "checkoutFailure";
|
||||||
} else {
|
} else {
|
||||||
root.itemHref = result.data.download_url;
|
root.itemHref = result.data.download_url;
|
||||||
|
|
Loading…
Reference in a new issue