aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/indexeddb.js2
-rw-r--r--common/patterns.js2
-rw-r--r--common/policy.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/common/indexeddb.js b/common/indexeddb.js
index 1c6244b..bd87399 100644
--- a/common/indexeddb.js
+++ b/common/indexeddb.js
@@ -215,7 +215,7 @@ async function finalize_transaction(context)
{
for (const uses of Object.values(context.file_uses)) {
if (uses.uses < 0)
- console.error("internal error: uses < 0 for file " + uses.sha256);
+ console.error("Haketilo: internal error: uses < 0 for file " + uses.sha256);
const is_new = uses.new;
const initial_uses = uses.initial;
diff --git a/common/patterns.js b/common/patterns.js
index 6f5aa40..9e9d387 100644
--- a/common/patterns.js
+++ b/common/patterns.js
@@ -174,7 +174,7 @@ function* each_url_pattern(url)
const deco = deconstruct_url(url);
if (deco === undefined) {
- console.error("bad url format", url);
+ console.error("Haketilo: bad url format", url);
return false;
}
diff --git a/common/policy.js b/common/policy.js
index 546aeed..47b2d1d 100644
--- a/common/policy.js
+++ b/common/policy.js
@@ -64,7 +64,7 @@ function decide_policy(patterns_tree, url, default_allow, secret)
try {
var payloads = pqt.search(patterns_tree, url).next().value;
} catch (e) {
- console.error(e);
+ console.error("Haketilo:", e);
policy.allow = false;
policy.error = {haketilo_error_type: "deciding_policy"};
}