diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index 419876fadb..aa9415059e 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -432,9 +432,13 @@ function compileTab (container, appAPI, appEvents, opts) { } else { publishOnSwarm(contract, appAPI, function (err) { if (err) { - alert('Failed to publish metadata: ' + err) + try { + err = JSON.stringify(err) + } catch (e) {} + modalDialogCustom.alert(yo`Failed to publish metadata file to swarm, please check the Swarm gateways is available ( swarm-gateways.net ).
+ ${err}
`) } else { - alert('Metadata published successfully. You\'l find the Swarm address in the Contract details.') + modalDialogCustom.alert(yo`Metadata published successfully.
The Swarm address of the metadata file is available in the contract details.
`) } }) }