From 37830ce8da03490964e35e2d2461b3d24ad8f781 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Thu, 8 Dec 2011 19:21:03 +0100 Subject: [PATCH] Fix a couple of error messages Signed-off-by: Antonio Ospite --- direct_download_links.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]; -- 2.1.4