fix: gold icon, story banner crop, crafted items persist, community blurb, validation error filtering
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m4s
CI / Lint, Build & Test (pull_request) Failing after 1m11s

This commit is contained in:
2026-04-06 13:57:32 -07:00
committed by Naomi Carrigan
parent 99ca3083a1
commit c494cf9a26
6 changed files with 57 additions and 9 deletions
+11 -3
View File
@@ -5,14 +5,22 @@
* @author Naomi Carrigan
*/
/* eslint-disable no-console -- Errors are forwarded to backend via the overridden console.error */
import { ValidationError } from "../api/client.js";
/**
* Logs an error to the backend telemetry service.
* Accepts the same arguments as console.error — conventionally a context string
* followed by the error value.
* @param logArguments - The values to log, forwarded directly to console.error.
* ValidationErrors (4xx API rejections) are downgraded to console.warn so they
* are not forwarded to the error-email pipeline — they are expected server responses.
* @param logArguments - The values to log, forwarded directly to console.error or console.warn.
*/
const logError = (...logArguments: Array<unknown>): void => {
const isValidation = logArguments.some((argument) => {
return argument instanceof ValidationError;
});
if (isValidation) {
console.warn(...logArguments);
return;
}
console.error(...logArguments);
};