Commit ce2e8836 authored by yann300's avatar yann300

update return msg of publish to swarm

parent e1c5fe17
......@@ -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`<span>Failed to publish metadata file to swarm, please check the Swarm gateways is available ( swarm-gateways.net ).<br />
${err}</span>`)
} else {
alert('Metadata published successfully. You\'l find the Swarm address in the Contract details.')
modalDialogCustom.alert(yo`<span>Metadata published successfully.<br />The Swarm address of the metadata file is available in the contract details.</span>`)
}
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment