Commit 1bd694b6 authored by yann300's avatar yann300

add alert if publish to gist fails

parent 03f55cc5
...@@ -348,6 +348,7 @@ function filepanel (appAPI, filesProvider) { ...@@ -348,6 +348,7 @@ function filepanel (appAPI, filesProvider) {
packageFiles(filesProvider['browser'], (error, packaged) => { packageFiles(filesProvider['browser'], (error, packaged) => {
if (error) { if (error) {
console.log(error) console.log(error)
modalDialogCustom.alert('Failed to create gist: ' + error)
} else { } else {
var description = 'Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. \n Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=' + queryParams.get().version + '&optimize=' + queryParams.get().optimize + '&gist=' var description = 'Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. \n Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=' + queryParams.get().version + '&optimize=' + queryParams.get().optimize + '&gist='
console.log(packaged) console.log(packaged)
......
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