mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix(nuxt-error): always show errors in debug more
SPA mode in debug mode when error is not globally handled (thrown by other nuxt functions) there is no error at all in console logs
This commit is contained in:
parent
888b141a27
commit
251d87914d
@ -34,6 +34,7 @@ export default {
|
||||
}
|
||||
},
|
||||
<% if(debug) { %>
|
||||
// Only on debug mode
|
||||
data () {
|
||||
return {
|
||||
mounted: false
|
||||
@ -42,6 +43,16 @@ export default {
|
||||
mounted () {
|
||||
this.mounted = true
|
||||
},
|
||||
created () {
|
||||
console.error(this.error)
|
||||
},
|
||||
watch: {
|
||||
error(newErr) {
|
||||
if(newErr) {
|
||||
console.error(newErr)
|
||||
}
|
||||
}
|
||||
},
|
||||
<% } %>
|
||||
computed: {
|
||||
statusCode () {
|
||||
|
Loading…
Reference in New Issue
Block a user