diff --git a/src/lib/gist-handler.js b/src/lib/gist-handler.js index f99001b1ff..0c9a7a2e4b 100644 --- a/src/lib/gist-handler.js +++ b/src/lib/gist-handler.js @@ -12,11 +12,13 @@ function GistHandler (_window) { var gistId if (params['gist'] === '') { loadingFromGist = true - modalDialogCustom.prompt(null, 'Enter the ID of the Gist you would like to load.', null, (target) => { + modalDialogCustom.prompt(null, 'Enter the ID of the Gist or URL you would like to load.', null, (target) => { if (target !== '') { gistId = getGistId(target) if (gistId) { cb(gistId) + } else { + modalDialogCustom.alert('Error while loading gist. Please provide a valid Gist ID or URL.') } } })