fix: editing game image metadata in admin panel

This commit is contained in:
Huskydog9988
2025-05-14 16:30:35 -04:00
parent b033496710
commit ccdbbcf01c
2 changed files with 7 additions and 10 deletions

View File

@ -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,