Skip to content

Commit

Permalink
slightly better error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
fago authored Aug 27, 2024
1 parent 83ccb91 commit 4372680
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions playground/server/middleware/drupalFormHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default defineEventHandler(async (event) => {
error: {
data: error,
statusCode: error.statusCode || 400,
message: error.message || 'Fetch error. See drupalFormHandler.',
message: error.message || 'Error when POSTing form data (drupalFormHandler).',
}
}
})
Expand All @@ -32,8 +32,8 @@ export default defineEventHandler(async (event) => {
throw createError({
statusCode: 400,
statusMessage: 'Bad Request',
message: 'No or invalid form data given. See drupalFormHandler.',
message: 'POST requests without form data are not supported (drupalFormHandler).',
})
}
}
})
})

0 comments on commit 4372680

Please sign in to comment.