check if place or tag exists, fix #268

This commit is contained in:
lesion
2023-05-11 22:29:21 +02:00
parent 10d8eb0107
commit 1508df3850
3 changed files with 16 additions and 9 deletions

View File

@@ -40,7 +40,7 @@ export default {
const events = await $axios.$get(`/tag/${encodeURIComponent(tag)}`)
return { events, tag }
} catch (e) {
error({ statusCode: 400, message: 'Error!' })
error({ statusCode: 404, message: 'Tag not found' })
}
}