mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
blueslip: Reduce cardinality of blueslip.error() calls.
Particularly when grouping in Sentry, pushing the ids and such into the additional data section helps group like errors together better.
This commit is contained in:
committed by
Tim Abbott
parent
1769f981da
commit
64b277d845
@@ -229,7 +229,7 @@ export function create($container, list, opts) {
|
||||
const s = opts.modifier(item);
|
||||
|
||||
if (typeof s !== "string") {
|
||||
blueslip.error("List item is not a string: " + s);
|
||||
blueslip.error("List item is not a string", {item: s});
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -268,7 +268,7 @@ export function create($container, list, opts) {
|
||||
}
|
||||
const html = opts.modifier(item);
|
||||
if (typeof html !== "string") {
|
||||
blueslip.error("List item is not a string: " + html);
|
||||
blueslip.error("List item is not a string", {item: html});
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user