From: Antonio Ospite Date: Thu, 8 Dec 2011 18:21:03 +0000 (+0100) Subject: Fix a couple of error messages X-Git-Tag: 0.3~17 X-Git-Url: https://git.ao2.it/GM_direct_download_links.git/commitdiff_plain/37830ce8da03490964e35e2d2461b3d24ad8f781?ds=inline Fix a couple of error messages Signed-off-by: Antonio Ospite --- diff --git a/direct_download_links.user.js b/direct_download_links.user.js index 0a9aac5..9b98b37 100644 --- a/direct_download_links.user.js +++ b/direct_download_links.user.js @@ -91,13 +91,13 @@ for (i = 0; i < supported_sites.length; i++) { function direct_download_link_add(pageURL, fileElem, fileRegexp, linkDest) { var element = document.getElementById(fileElem); if (!element) { - alert('DirectDL (' + pageURL + '): Cannot find the element containing the file URL.'); + alert('DirectDL (' + pageURL + '): Cannot find the element ' + fileElem + ' containing the file URL.'); return null; } var content = element.textContent; if (!content) { - alert('DirectDL (' + pageURL + '): textContent is null, cannot fild file URL.'); + alert('DirectDL (' + pageURL + '): textContent is null, cannot find file URL.'); } var fileURL = content.match(fileRegexp)[1];