Issue warning if gist publish failed

pull/1/head
Alex Beregszaszi 8 years ago
parent 7286c9a3d1
commit cd4d696807
  1. 2
      src/app.js

@ -197,6 +197,8 @@ var run = function () {
if (response.html_url && confirm('Created a gist at ' + response.html_url + ' Would you like to open it in a new window?')) { if (response.html_url && confirm('Created a gist at ' + response.html_url + ' Would you like to open it in a new window?')) {
window.open(response.html_url, '_blank') window.open(response.html_url, '_blank')
} }
}).fail(function (xhr, text, err) {
alert('Failed to create gist: ' + (err || 'Unknown transport error'))
}) })
} }
}) })

Loading…
Cancel
Save