Code-Pop / real-world-vue

The application that we build in Vue Mastery's courses starting with Real World Vue
https://www.vuemastery.com
1.02k stars 494 forks source link

Mastering Vuex, Success & Error Notifications Lesson 7. error.response should be error.message #5

Open aspiringguru opened 5 years ago

aspiringguru commented 5 years ago

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)