diff --git a/resources/js/components/pages/Collection.vue b/resources/js/components/pages/Collection.vue index 1089b19..e13f7d9 100644 --- a/resources/js/components/pages/Collection.vue +++ b/resources/js/components/pages/Collection.vue @@ -229,7 +229,7 @@ export default { message = toString(error).substring(0, 60) this.$store.dispatch('notification/setNotification', { type: 'error', - title: 'Error', + title: 'Error ' + error.response.status, description: message, }) }) diff --git a/resources/js/components/pages/Post.vue b/resources/js/components/pages/Post.vue index 28d1d86..70d5618 100644 --- a/resources/js/components/pages/Post.vue +++ b/resources/js/components/pages/Post.vue @@ -239,10 +239,10 @@ export default { this.$store.dispatch('post/addPost', response.data.data) } }) - .catch(() => { + .catch((error) => { this.$store.dispatch('notification/setNotification', { type: 'error', - title: 'Error', + title: 'Error ' + error.response.status, description: 'Post could not be created.', }) }) diff --git a/tailwind.config.js b/tailwind.config.js index df1a075..08a2c35 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -11,7 +11,7 @@ module.exports = { 'text-green-600', 'border-red-600', 'border-green-600', - ] + ], }, theme: { extend: {