real-world-vue
real-world-vue copied to clipboard
Mastering Vuex, Success & Error Notifications Lesson 7. error.response should be error.message
at 0:36 in the Success & Error Notifications lecture the code incorrectly references error.response when error.message should be used.
console.log('there was an error:', error.response)
https://www.vuemastery.com/courses/mastering-vuex/success-error-notifications
It's a relatively minor error, quite annoying until you realize how simple it is to fix.
This is fixed later in the video when console.log('there was an error:', error.response) is replaced by console.log('there was an error:', error.message)