From cd4d6968076f97481222dc8636e3626cb3e0981b Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 20 Mar 2017 12:17:37 +0000 Subject: [PATCH] Issue warning if gist publish failed --- src/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app.js b/src/app.js index 220678d7f7..e1e41eda00 100644 --- a/src/app.js +++ b/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?')) { window.open(response.html_url, '_blank') } + }).fail(function (xhr, text, err) { + alert('Failed to create gist: ' + (err || 'Unknown transport error')) }) } })