fix: editing game image metadata in admin panel

This commit is contained in:
Huskydog9988
2025-05-14 16:30:35 -04:00
parent 3fbcc2e886
commit f792252c0a
2 changed files with 7 additions and 10 deletions
@@ -16,9 +16,7 @@ export default defineEventHandler<{
const body = DeleteGameImage(await readBody(h3));
if (body instanceof type.errors) {
// hover out.summary to see validation errors
console.error(body.summary);
console.error(h3.path, body.summary);
throw createError({
statusCode: 400,
statusMessage: body.summary,