Skip to content

Commit 8a1f178

Browse files
author
ahmadhuss
committed
refactor: Updated CategoriesCreate.vue
1 parent 64011e2 commit 8a1f178

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resources/js/components/CategoriesCreate.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ export default {
2828
}).then( function(response) {
2929
console.log('New Category ID', response.data.data.id);
3030
}).catch(function(err) {
31-
console.log('Category Route error Promise has been rejected!', err);
31+
console.log(err);
32+
console.log('Category Route error Promise has been rejected!', err.response.data.errors);
3233
});
3334
}
3435
}

0 commit comments

Comments
 (0)