Initial commit

This commit is contained in:
2026-05-05 10:53:52 +02:00
commit 419e59ef2f
2269 changed files with 313143 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
// src/app/utils/error.utils.ts
function getErrorMessage(err, fallback) {
const errors = err?.errors;
if (!errors)
return fallback;
if (Array.isArray(errors)) {
return errors[0]?.errorMessage ?? fallback;
}
const first = Object.values(errors).flat()[0];
return (typeof first === "string" ? first : null) ?? fallback;
}
export {
getErrorMessage
};
//# sourceMappingURL=chunk-QDZ3GX5R.js.map