Improve unsupported PDF character errors
All checks were successful
Build and Push Docker Images / build-backend (push) Successful in 30s
Build and Push Docker Images / build-frontend (push) Successful in 1m12s
Build and Push Docker Images / build-website (push) Successful in 18s
Build and Push Docker Images / build-docs (push) Successful in 17s

This commit is contained in:
2026-07-24 10:25:10 +02:00
parent 4ab4c24b1a
commit d3ad53bcf0
4 changed files with 121 additions and 1 deletions

View File

@@ -45,6 +45,11 @@ export default defineNuxtPlugin(() => {
let title = "Fehler"
let description = "Ein unerwarteter Fehler ist aufgetreten."
if (status === 422 && response._data?.code === "UNSUPPORTED_PDF_CHARACTER") {
title = "Nicht unterstütztes Zeichen"
description = response._data.error
}
switch (status) {
case 400:
title = "Anfrage fehlerhaft"