From 6fc67e9b27ca95dfd869b65d843f4f264f3b0b51 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 31 May 2012 11:03:21 +0200 Subject: [PATCH] Add the current URL to the error alert. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 0cb722fad..ed0fcbb07 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -4185,7 +4185,7 @@ } } catch (err) { if (notify) { - alert("4chan X (" + Main.version + ") error: " + err.message + "\nhttp://mayhemydg.github.com/4chan-x/#bug-report\n\n" + err.stack); + alert("4chan X (" + Main.version + ") error: " + err.message + "\nReport the bug at mayhemydg.github.com/4chan-x/#bug-report\n\nURL: " + window.location + "\n" + err.stack); } } } diff --git a/script.coffee b/script.coffee index a4ca8943c..388f6c4cc 100644 --- a/script.coffee +++ b/script.coffee @@ -3186,7 +3186,7 @@ Main = try callback node for node in nodes catch err - alert "4chan X (#{Main.version}) error: #{err.message}\nhttp://mayhemydg.github.com/4chan-x/#bug-report\n\n#{err.stack}" if notify + alert "4chan X (#{Main.version}) error: #{err.message}\nReport the bug at mayhemydg.github.com/4chan-x/#bug-report\n\nURL: #{window.location}\n#{err.stack}" if notify return observer: (mutations) -> nodes = []